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

QWidget::restoreGeometry is not exact regarding Y offset (assumes hardcoded frameheight which may not be correct for popups)

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      QWidget::restoreGeometry has a hard-wired constant

      const int frameHeight = 20;

      that prevents a window to be restored at the top of the screen.
      While this could make sense on OSX which has a menu on every screen, it has no justification on Windows.
      Typical case: the user places a floating window on a second screen, at the very top. If the saveGeometry/restoreGeometry system is used, the window will be restored at y + 20.

      Attachments

        1. qtbug78999.zip
          2 kB
        2. test.cpp
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jirauser26727 user-04d21 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes