View Full Version : QMainWindow::x(), y(), move(int, int)
I save x and y properties to conf file in main window's destructor. Constructor restores these values from conf file and runs move(int, int) but every time I close and run my app, main window appears a little lower (y property higher). How can I fix this wicked behaviour? Maybe it's something with title bar but I still don't know how to fix this. Values are correctly restored from conf file.
I suggest using QWidget::saveGeometry() and QWidget::restoreGeometry(). This does not only take window geometry but also certain window states like "maximized" into account.
Question is related to Qt 3.
Question is related to Qt 3.
Oops, sorry I missed that. :)
It looks strange because I also tried geometry().y() and setGeometry() to restore and it didn't help :(
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.