Hello,
Is it possible to style the QRadioButton (and maybe als the QCheckBox) so that the text can be on the left sight of the Indicator, or above it?
Thx for your help.
Hello,
Is it possible to style the QRadioButton (and maybe als the QCheckBox) so that the text can be on the left sight of the Indicator, or above it?
Thx for your help.
Yes, it is possible. One way which I could suggest right way is use QStyleSheet with somthing like this
Qt Code:
" width: 10px;\n" " spacing: -75px;\n" "}\n" "\n" "QCheckBox::indicator {\n" " subcontrol-origin: content;\n" " subcontrol-position: right top;\n" "}"));To copy to clipboard, switch view to plain text mode
" width: 10px;\n" - is required
" spacing: -75px;\n" - does the magic, and "-75" should be dynamically calculated based on your text rending length on screen, (may you build this into the custom QCheckBox class)
Bookmarks