Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.10.1
-
Linux Ubuntu
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
- duplicates
-
QTBUG-5392 [QListView] QStyle::State_Selected is not set in QStyleOption::state passed to QAbstractItemDelegate::sizeHint(...) method
-
- Open
-