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

widget should position screen center when add/remove screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.11, 5.15, 6.0, 6.2, 6.3
    • Fix Version/s: None
    • Component/s: QPA: X11/XCB
    • Labels:
      None
    • Environment:
      deepin,debian
    • Platform/s:
      Linux/X11

      Description

      When using two screens, plug and unplug the screen, monitor the QGuiApplication::screenAdded and QGuiApplication::screenRemoved signals, and set the current widget to center display

      Phenomenon: When there are two screens, the widget is not displayed in the center

      the geometry.zip can reproduce this bug.

      when run the demo, the widget show center see 1.png,

      when remove a screen and wait a scecond, the widget not show the center see 2.png

       

      note: under the debian10(Qt version is 5.15.3), this bug always exist

        Attachments

        1. 1.png
          1.png
          2.23 MB
        2. 2.png
          2.png
          2.28 MB
        3. geometry.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            liaqi Liang Qi
            Reporter:
            kingderzhang kingderzhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes