Important: Please read the Qt Code of Conduct -

Automatic assignment of slots for several widget

  • Hi there.
    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.

  • Lifetime Qt Champion

    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.

Log in to reply