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

ListView and Windows Theme issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.6.0
    • QPA: Windows
    • None
    • Windows 7 x64 SP1

    Description

      Since Qt 5.6.0, at least under Windows 7 with Windows Basic Theme activated, the ListView theming sometimes appears graphically broken. In our application, this breaks at random points during execution but I manage to reproduce the problem by changing Theme from the Windows Control Panel.

      To reproduce the problem, run the Simple Tree Example from qtbase\widgets\itemviews\simpletreemodel with the Windows Basic Theme active. The list appears with little triangles when children are present (PE_IndicatorBranch) and some blue hightlighting on selected items. Change to Windows Classic Them, still working (of course wih different aspect). Change back to Windows Basic and it will appear broken: branch indicators are boxes with +/- instead of little triangles and selection is not a blue transparent background anymore.

      Only exiting the program and running it again will fix the theme rendering.
      Tried to debug a little, it appears the uxtheme.dll methods are still called but are somewhat not working correctly.

      It worked correctly with both Qt 4.8.6 and Qt 5.5.1. The problem occured with Qt 5.6.0 and it still present in Qt 5.7.0 alpha.

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              bfoucher Benjamin Foucher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes