Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Automatic assignment of slots for several widget
Forum Updated to NodeBB v4.3 + New Features

Automatic assignment of slots for several widget

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 133 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    milenio
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved