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. Stacked widget signals and slots
QtWS25 Last Chance

Stacked widget signals and slots

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 405 Views
  • 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.
  • R Offline
    R Offline
    rafael
    wrote on last edited by
    #1

    i have a stacked widget on my main window it contains 2 custom widgets
    those custom widgets have a stacked widget and 2 custom widgets also.
    what is the easiest way to pass a variable from the inner most custom widget to my main window.

    i am able to pass data but i am having to chain connect signals and slots.
    could somebody show me an example on how to connect the signal directly to a slot in my mainwindow.

    thanks

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

      Hi,

      You're using the correct strategy currently. Keep things encapsulated, If you try to make "direct" connection between low level widgets with the top, you are going to create tight coupling which is going to be a nightmare to maintain.

      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
      0

      • Login

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