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

Fixed size QWidget pos error on switch screen when its layout containing a wordwrap QLabel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.1, 5.15.2
    • None
    • win10 20H2 (19042.746)
      qt 5.15.1
      qtcreator 4.14.0 based on qt5.15.2 (MSVC 2019 64 bit)
    • Windows

    Description

      Hi guys:
      I found an issue with wordwrap QLabel on hidpi on two monitors with different scale factors.

      I have two monitors as follows:
      1. primary monitor placed at right (3840x2160 with scale factor 150%) primary.png
      2. secondary monitor placed at left (2560x1440 with scale factor 100%) secondary.png

      I create a fixed size QWidget, and a wordwrap QLabel, then put QLabel into layout of the QWidget, when I move the QWidget from a monitor to another, the QWidget is not under my mouse cursor so it's hard to move the QWidget from one monitor to another. See attachments mytest.mp4.

      Here is a short example to reproduce the bug: qtbug90460.zip

      I also found that the "About Qt Creator" dialog in qtcreator qtcreator.png have the same issue too, see qtcreator-test.mp4.

      My win10 version is 20H2 (19042.746) winver.png.

      Attachments

        1. mytest.mp4
          9.94 MB
        2. primary.png
          primary.png
          63 kB
        3. qtbug90460.zip
          3 kB
        4. qtcreator.png
          qtcreator.png
          44 kB
        5. qtcreator-test.mp4
          7.96 MB
        6. secondary.png
          secondary.png
          61 kB
        7. winver.png
          winver.png
          28 kB

        Activity

          People

            kleint Friedemann Kleint
            luozikuan zikuan luo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: