Enable rich text format for QRadioButton - how?
Unsolved
General and Desktop
-
Hello, all.
I saw there is a similar topic posted almost an year ago, but the final answer is too generic. I saw a Qt user has struggled with exactly the same issue and has come up with a
QStyle
-based solution. Translated the latter from Python to C++ but it lacks correct size hint management - the customQStyle
's size for contents function doesn't useQTextDocument
for obtaining the correct size hint. My wondering here about the size hint is also whether the customQStyle
's size hint suffices for the calculation of theQRadioButton
's one but should look again into the sources. Is there any better and more integrated way of enabling rich text inQRadioButton
and not only -QComboBox
,QPushButton
, etc.?