Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.13.2
-
None
Description
As soon as an item has a valid checkstate, this state leads, in some styles, to a checkbox being drawn for the item in the dropdown of a QComboBox.
Problem is, the width of the dropdown is not adjusted, as can be seen in the screenshot:
Now, using a proxy model I unset the Qt::ItemIsUserCheckable flag to no effect.
Only when overwriting data() in the proxy model and returning an invalid QVariant for Qt::CheckStateRole, the checkboxes disappear and the dropdown is back in a reasonable shape. Note that Qt::ItemIsUserCheckable is the flag (un)set by QStandardItem::setCheckable().
Expected behavior: Checkboxes are only drawn for items with Qt::ItemIsUserCheckable flag set.
Observed behavior: The Qt::ItemIsUserCheckable flag is ignored as soon as a valid CheckState is found.