Qt Dynamic Connect Signal Slot
Hello,
I have two classes that I create instances of during run time. I am trying to connect a signal and a slot of the two instances, however I am not sure how to do this because upon initialization the instances point to nothing and only get created somewhere in the middle of my application running. I'm not sure how to connect the two signals and slots unless they are created before I call the connect() function.
I don;t know if it matters, but this is the line I use:
@connect(directory_Widget, SIGNAL(editProgramSignal()), editProgram_Widget, SLOT(editProgramSlot()));@
Qt Signal Slot
The problem is that directoty_Widget and editProgram_Widget (which are pointer) are NULL at initialization and only get point to memory after a equence of things happen from the user upon run time. Any ideas on how to connect the signals and slots in this fashion??
Qt Dynamic Connect Signal Slot Machine
Thanks!