English | Deutsch | Български | 한국어
#include <QStyle> #include <QDesktopWidget> window->setGeometry( QStyle::alignedRect( Qt::LeftToRight, Qt::AlignCenter, window->size(), qApp->desktop()->availableGeometry() ));