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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes