[Qt-interest] QtCreator and QButtonGroup
Luis Lezcano Airaldi
luislezcair at gmail.com
Mon Jun 21 19:45:03 CEST 2010
El 21/06/10 12:03, Simon Drouin escribió:
> Is there a way to connect a signal from a QButtonGroup within QtCreator?
>
> With other widget types, I simply select the widget and
> right-click->Go to slot... which allows me to select a signal and
> automatically creates the slot to connect to. Since a QButtonGroup is
> not a widget, the interface doesn't let me do that. Is there any
> other way?
No, there's no way to do it whithin QtCreator because it is not a QWidget.
You have to add the proper code to the source file:
connect(buttonGroup, SIGNAL(someSingal()), this, SLOT(someSlot());
Regards.
More information about the Qt-interest-old
mailing list