Problem when manipulating QT window geometry