[Qt-interest] QRadioButton and toggled(bool) signal

Robert Caldecott robert.caldecott at gmail.com
Thu Jun 11 16:37:17 CEST 2009


I have designed a dialog using Qt Creator/Qt Designer that contains
two radio buttons.  I have wired up the toggled(bool) signal of one of
these buttons to the setEnabled(bool) slot of two other controls on
the form, so when the a button is clicked the two other controls are
enabled/disabled accordingly.  This works fine once the dialog is
displayed and one of the radio buttons is selected, but the
toggled(bool) signal isn't emitted when the dialog is first created.
Can I force this signal to fire from my dialog's constructor so the
initial state of the related controls is correct when the form is
displayed?



More information about the Qt-interest-old mailing list