Is there a simple way to center a QMainWindow object on the
users screen?
Is there a simple way to center a QMainWindow object on the
users screen?
Last edited by bhs-ittech; 31st August 2006 at 10:43.
Just move() it there. You can use QDesktopWidget to get the desktop size.
bhs-ittech (31st August 2006)
sorry for not seaching the other threads.
Thanks for the pointer though.
I found a simple working solution:
Qt Code:
w->show(); w->setGeometry(ct);To copy to clipboard, switch view to plain text mode
Bookmarks