Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. RadioButton with more than one selection
Qt 6.12 LTS is out! See what's new in the release blog

RadioButton with more than one selection

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 2.6k 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.
  • C Offline
    C Offline
    column
    wrote on last edited by
    #1

    Hello,

    I need to have selection from several options that I expect to achieve with Qt RadioButton. What is the best way to make menu from several RadioButons in Qt widget application?

    alt text

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Put them in a QGroupBox if u want them to be exclusive. (only one selected)
      If one or more can be selected, then QCheckBox is the one to use.
      QRadioButton is for zero or 1 selections. Not multiple unless the radios are in
      multiple groups.

      1 Reply Last reply
      4

      • Login

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