Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCheckBox, text at the top of the check
Forum Update on Monday, May 27th 2025

QCheckBox, text at the top of the check

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    luca
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        luca
        wrote on last edited by
        #3

        [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...

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved