Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12
-
None
-
macOS High Sierrra, Version 10.13.6
Description
I've modified qt's simpletreemodel.pro example by adding
if (role == Qt::CheckStateRole) { return Qt::Checked; } if (role == Qt::DecorationRole) { return QColor("red"); }
to TreeModel::data.
See attached screenshot - there is quite some space between the checkbox and the icon/red box.