Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.6.0
-
None
-
Windows 7, x86, vs2k8
Description
QWidget::frameGeometry() does not include the window frame/decorations on Windows 7.
The dimensions returned by frameGeometry(), geometry(), size() and friends does not vary when called on a QDialog on Windows 7.
The following code should place the dialog in the bottom right, flush against the task bar on Windows:
{{ QRect screenGeometry(QApplication::desktop()->availableGeometry());
this->adjustSize();
QCoreApplication::processEvents();
int ht(frameGeometry().height());
int wd(frameGeometry().width());
move(screenGeometry.right() - wd, screenGeometry.bottom() - ht);}}