Ideas for a module to connect signals and slots from different classes
-
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 -
Hi and welcome to devnet,
Something like a publish/subscribe system ?