Unsolved Grey out effect in QRadioButton delegate
-
Hi all,
Based on
QStyleOption[Button]
and this example I've made a QRadioButton delegate derived from QStyledItemDelegate class.What I want is to give "grey out" effect when the item is disabled, like the effect that radio button widget has when it is disabled. Is it possible through
paint
?Thank you
-
@crizos said in Grey out effect in QRadioButton delegate:
Is it possible through paint?
No, you need a QIcon for this: https://doc.qt.io/qt-5/qicon.html#making-classes-that-use-qicon
-
I was thinking that I could also change the
QRadioButton
's indicator color, is that possible?Also, simple
QCheckBox
has that capability, could somehow exploit that?Thank you