[Qt-interest] QRadioButton and toggled(bool) signal
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Thu Jun 11 16:45:21 CEST 2009
Slots are just functions... call the function at the end of the
constructor....
Or, setup your connections before you initialize the values, so when you
programmatically set them, the signals get emitted from the widgets
Scott
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Robert Caldecott
Sent: Thursday, June 11, 2009 7:37 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QRadioButton and toggled(bool) signal
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?
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list