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. Radio button to select all radio buttons
Qt 6.11 is out! See what's new in the release blog

Radio button to select all radio buttons

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

    qf.png
    Need to press radio button 1 (Clicked) to select all radio buttons in (2,3,4,5). Select meaning 2,3,4,5 state=clicked
    Kindly advise

    JonBJ 1 Reply Last reply
    0
    • J JohnLocke

      qf.png
      Need to press radio button 1 (Clicked) to select all radio buttons in (2,3,4,5). Select meaning 2,3,4,5 state=clicked
      Kindly advise

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #2

      @JohnLocke
      So recognise that button being clicked (signal/slot) and set the others to checked.
      But you should not be using radiobuttons for this! A radiobutton's whole definition is "only one of this group can be clicked" so that's really confusing. Use checkboxes.
      In either case QButtonGroup Class aids programming, you probably want a group for the buttons excluding your Select all one.

      1 Reply Last reply
      3

      • Login

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