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

QTreeView out of focus selection incorrect when using custom style for tree branch icons

    XMLWordPrintable

Details

    Description

      Create a QTreeView widget with custom styling. Branch close, open, and other states have custom icons. 

      • Image 1  - Correct behavior
        QTreeView widget is in focus, the selection behavior is correct. The row item is selected along with the branch images set using the stylesheet. 
      • Image 2, Image 3 - Incorrect behavior 
        QTreeView widget is not in focus, the selection behavior is incorrect. The row item is grayed out, the branch icon has incorrect color. It should be grayed out

      Custom styling on QTreeView widget (branch open, close images) should not affect the default out of focus behavior. 

       

      Also attached QTreeView styling code. 

       

      Similar behavior can be duplicated with QTreeWidget

       

      Attachments

        1. Image 1 - Correct.png
          Image 1 - Correct.png
          50 kB
        2. Image 2 - Incorrect.png
          Image 2 - Incorrect.png
          50 kB
        3. Image 3 - Incorrect.png
          Image 3 - Incorrect.png
          33 kB
        4. QTreeView styling.txt
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nicksqtdev Nikhil Sapre
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes