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

QComboBox animation shows up at completely wrong position.

    XMLWordPrintable

Details

    • 045a143c2c72c72f264dd40f5da2994e647dc0ee (qt/qtbase/5.14)

    Description

      In high dpi mode (i.e Qt::AA_EnableHighDpiScaling ) folding out a QComboBox can result in the animation to be shown at a very wrong position.
      Display 1 primary left (100% - recommended)
      Display 2 secondary right (150% - recommended)

      1. Run code attached.
      2. Move the widget to the secondary
      3. Expand the drop-down.

      That results in the following when animation is displayed.
      (When the animation is done the dropdown is shown correctly, but there can sometimes be 40 items which takes some time to render).


      (EDIT: There is plenty of space below the combo (though not visible in the picture - so that has nothing to do with the issue).
      I haven't tried with 5.9.x, but I don't recalling seeing the issue there, so I suspect it is a regression.

      Attachments

        1. image-2020-02-10-13-20-13-843.png
          image-2020-02-10-13-20-13-843.png
          426 kB
        2. main.cpp
          0.4 kB
        3. main.pro
          0.0 kB
        4. qtbug82011.zip
          2 kB
        5. qtdiag.txt
          8 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-82011
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              tmartsum Thorbjørn Lund Martsum
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes