Is there a simple way to center a QMainWindow object on the
users screen?
Printable View
Is there a simple way to center a QMainWindow object on the
users screen?
Just move() it there. You can use QDesktopWidget to get the desktop size.
Check thread: set QMainWindow in the center of my desktop
sorry for not seaching the other threads.
Thanks for the pointer though.
I found a simple working solution:
Code:
w->show(); w->setGeometry(ct);