PDA

View Full Version : Undoing radio button checks.



Doug Broadwell
22nd May 2007, 01:33
I have a group of radio buttons and there are instances where I do not have A Priori knowledge of whether that given selection is valid when pressed. When a button is pressed, if at that moment it is not valid I need to set a different radio button true. What would be the best way to do this without creating a flurry of signals? Is disabling and then re-enabling the radio buttons' signals the way to do it?

Thanks
Doug Broadwell

high_flyer
22nd May 2007, 09:12
What would be the best way to do this without creating a flurry of signals? Is disabling and then re-enabling the radio buttons' signals the way to do it?
Why do you think such a situation will generate a "flurry of signals"?
Just connect the toggled() or clicked() signal to an evalutation slot, which will validate the buttons state, and turn on that other button if needed.