How to center a window on the screen
- #include <QStyle>
- #include <QDesktopWidget>
- window->setGeometry(
- window->size(),
- qApp->desktop()->availableGeometry()
- ));
Thanks to Peppe [developer.qt.nokia.com] who pointed this out in this forum thread [developer.qt.nokia.com]

