Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140449

disabled radio button that was checked but was set to false while being disabled, still shows as checked until you hover your mouse over it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.3
    • GUI: Look'n'Feel
    • None
    • Windows

      If you  have a QButtonGroup with four QRadioButtons in it and one of those radio buttons is currently disabled and checked, when you call this code (to reset the button group to no selection):

      ui->my_BG->setExclusive(false);      
      for (QAbstractButton* button : ui->my_BG->buttons())      
      {        
         button->setChecked(false);      
      } 
      ui->my_BG->setExclusive(true);      

      Then after the radio button is enabled, it will appear as checked until you mouse over it.  

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            servant Adam Dunsmoor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes