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

QScreen geometry doesn't get updated after a few position changes of the two monitors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.7, 5.10, 5.11.0
    • GUI: Window management
    • None
    • Windows 10 Pro
      1803

    Description

      I use QScreen to get the geometry of the (two) screens I work on.

      After 3-4 position changes of the screens, I get the same(obsolete) values.

       After Qt 5.10, I also get the following warning message:

      QSGThreadedRenderLoop: expose event received for window ApplicationWindow_QMLTYPE_11(0x227caf188a0) with invalid geometry: QRect(-1219,319 300x100) on QScreen(0x227c8451200, name=\\.\DISPLAY4)

      Killing the process and starting all over again, gives me the correct (current) values.

      I have a simple project attached for demonstration. I am under the impression that this happens only when the application window first appears on the second monitor(not the primary one).

      I have checked it on a MAC and I don't have any issues. Also, I have checked it at some other identical machines and only once I got the aforementioned warning

      The bug appears at least since Qt 5.7

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            elpidamachairidou Elpida Machairidou
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes