Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] How to ensure that a dialog always appears at center of the screen
adnan last edited by
Whenever i invoke the dialog, main application being hidden, the dialog appears at corner.
AcerExtensa last edited by
You can simply set geometry for your Dialog to the center of the screen...
broadpeak last edited by
Dialog::Dialog(QWidget *parent) : QDialog(parent)
const QRect screen = QApplication::desktop()->screenGeometry();
this->move( screen.center() - this->rect().center() );