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. Ideas for a module to connect signals and slots from different classes
QtWS25 Last Chance

Ideas for a module to connect signals and slots from different classes

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 242 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.
  • L Offline
    L Offline
    Luis Ortiz
    wrote on last edited by
    #1

    Hello everyone,

    I am starting to develop a complex system which consists of a lot of classes that will be communicating with each other via signals and slots.

    Currently, I am creating instances of each class and calling connect inside the main function. This is working fine by now as there are only 3 classes and a few signals and slots.
    However, this will grow and more developers will start working in this project. Now, there is a concern on how to separate and organize this code in order to automate the development course of the project.

    I would like to ask for some ideas on how to separate the signals and slots connection from the main function. I was thinking about creating one class responsible for creating relations between all signals and slots, but I can not see this as a good practice (as it would have know the instance of each class) or if this would work.

    Thank you in advance,
    Luis

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

      Hi and welcome to devnet,

      Something like a publish/subscribe system ?

      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