Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Automatic assignment of slots for several widget
milenio last edited by
I'm using QT Creator and I have a QGroupBox with several widgets (QComboBox, QDoubleSpinBox, QDateEdit,...).
I want to change the property of one widget (QLabel) when whatever widget in the groupbox change its value (value, currentindex, text,...).
Is there an alternative to right-click in each widget, select the appropriate slot and create a function for each widget change?
Sorry if this is a basic question, I'm new in Qt.
Thanks for your help.
Hi and welcome to devnet,
You could do it in code which might be faster to write than clicking in Designer or with some Qt meta object programming but that might be overkill since you are getting started.