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 Updated to NodeBB v4.3 + New Features

QCheckBox, text at the top of the check

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.5k Views 1 Watching
  • 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 12 Dec 2011, 10:29 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 12 Dec 2011, 10:41 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 12 Dec 2011, 10:49 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

        3/3

        12 Dec 2011, 10:49

        • Login

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