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

QWidget::frameGeometry() does not match WM_NCCALCSIZE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.9.0 Alpha
    • 5.6.1
    • QPA: Windows
    • None
    • Windows 10
    • c9e1cf516fdce567e54b5d5f4ea9d44164b3e28c (qtbase/dev, 20.,11.2016, 5.9)

    Description

      I am implementing a custom window decoration for a project on Windows 10 by handling WM_NCCALCSIZE (and WM_NCPAINT, WM_NCHITTEST, ..) message. The custom border and caption sizes I return upon WM_NCCALCSIZE never match the values returned by QWidget::frameGeometry(). Looking into Qt code, the problem is because QWidget::frameGeometry() uses AdjustWindowRectEx().

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              celandre dzimiwine celandre
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes