Merge pull request #385 from tribal-tec/master

Fix offscreen Qt window: viewport and transfer window
Fix build w/ Qt 4.6