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. Qt SQuared radio button [Solved]
Forum Updated to NodeBB v4.3 + New Features

Qt SQuared radio button [Solved]

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.3k 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.
  • B Offline
    B Offline
    blackbelt
    wrote on last edited by
    #1

    Hello guys,

    I want to create a squared radio button, with the text inside the button. Is that possible? I think the button shape could be changed trough css, but what about the text?

    Any hint?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sam
      wrote on last edited by
      #2

      It will be more clear if you can attach an image of your requirement.

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

        I agree with Sam, but I'd also like to add a word of warning: it is generally a Very Bad Idea(TM) to change the shape of controls users are used to. If a control looks a certain way, it is generally expected to work a certain way, and vise versa.

        Also, if you want something that looks like button, why not use a set of buttons? Buttons can also be toggled, and they can also be mutually exclusive by putting them in a [[doc:QButtonGroup]].

        1 Reply Last reply
        0
        • B Offline
          B Offline
          blackbelt
          wrote on last edited by
          #4

          A QPushButton that works like a QRadioButton

          1 Reply Last reply
          0
          • B Offline
            B Offline
            blackbelt
            wrote on last edited by
            #5

            bq. Also, if you want something that looks like button, why not use a set of buttons? Buttons can also be toggled, and they can also be mutually exclusive by putting them in a QButtonGroup.

            that's exactly what I need. Thank you

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

              Please mark your topic as [Solved] then (edit your first post, and modify the title). Glad I could help.

              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