QCheckBox, text at the top of the check



  • Hi all,
    I'd like to have a QCheckBox where the label text is at the top of the check element.
    Normally the QCheckBox has this layout:
    @

    O Label

    @

    while I want:
    @
    Label
    O
    @

    Is it possible?



  • Easiest would be to use a separate label and a checkbox without a text, though I think you could use a proxy style to modify the way a checkbox is rendered.

    Note that from a UI perspective, what you are doing is probably a bad idea.



  • [quote author="Andre" date="1323686498"]Easiest would be to use a separate label and a checkbox without a text, though I think you could use a proxy style to modify the way a checkbox is rendered.

    Note that from a UI perspective, what you are doing is probably a bad idea.[/quote]

    Thanks Andre,
    I didn't think about using a chackbox without text. I'll probably use this solution.
    I think that using a proxy style is more complicated...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.