Qt: Fixing issue #50