Fix window positioning with Qt 5