Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. QRadioButton -> setcheked(bool) problem
QtWS25 Last Chance

QRadioButton -> setcheked(bool) problem

Scheduled Pinned Locked Moved India
3 Posts 3 Posters 2.0k 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.
  • S Offline
    S Offline
    Sayan Bera
    wrote on last edited by
    #1

    in a groupbox 8 radiobtns are added and a single btn is set as checked. when anyone of the radiobtn is clicked, that particular btn is checked and the checked one gets unchecked by default. But sometimes while clicking anyone of the btn randomly, the clicked one doesn't gets checked and previously checked btn gets unchecked. Apart from radiobtns,there are 4-5 QMeter widget(downloaded from qt-app.org) and few pushbtns in the application.

    Regards
    Sayan

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

      Can you share your code so that we can reproduce the same issue ?

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        Well, what I think about this was that you put them all in a single groupbox... Qt thinks that it is a "selection" with only one radiobutton be checked at a time.

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

        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