Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-7005

QWidget::frameGeometry() does not include the window frame/decorations on Windows 7

    XMLWordPrintable

Details

    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);}}

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            anacrolix Matt Joiner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes