Yes Class A is in the context of GUI thread.Your classA seems to be in the context of the GUI thread. The GUI thread has an event loop (you do create a QApplication and call its exec() somewhere, right). So it can receive signals.
So its not a problem to send a signal from GUI to Thread-Class C and the other way around.
Parts of my GUI is growing dynamically, so new widgets would be available at runtime.
Each new widget should be connected to a new instance of Class C, which includes the slots.
And the other way,..the (new) signals from Class C would be connected to SLOTS of (new widget) GUI.
The GUI elements can be buttons, listbox or sth different.
How can I handle this in Class A and in Class B without much trouble?
Is it possible to have one "pipe" in Class A and Class B to forward it in both ways?
Widget1 -->Signal1 ------> SLOT of ClassA ----> SLOT of ClassB -----> Instance1 of ClassC
Widget2 -->Signal2 .................................................. .............. -----> Instance2 of ClassC
Bookmarks