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

QStyle::State_Open flag is not set in QStyleOptionViewItem's state member

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.2.1
    • GUI: Painting
    • None

    Description

      When implementing the sizeHint method of a derived QStyledItemDelegate
      that is used for a QTreeView, I found that the passed option of type
      StyleOptionViewItem is not completely initialized to reflect the state
      of the widget.

      No matter whether the item is expanded or not in the tree view, the
      QStyle::State_Open flag in the state member of the passed option is never set.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mlangen Marc Langenbach
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes