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

QStyledItemDelegate::sizeHint() - QStyle::State_Selected flag is not set in QStyleOptionViewItem parameter.

    XMLWordPrintable

Details

    Description

      When implementing the sizeHint() function of a derived QStyledItemDelegate
      that is used for a QTreeView, the passed option of type StyleOptionViewItem and it's member state is not set according to if the item is selected or not. It should be set true if the item is selected, but it's always set as false.

      Attachments

        Issue Links

          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
              tuomas.vaarala Tuomas Vaarala
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes