Hi,
I have two kind of classes. I use them for dynamically creating of objects at runtime.
The first one is a QWidget template for the GUI (which holds many widgets), the second one is a simple object(which holds the whole logic/functionality).
After creating this pair dynamically at runtime I want to connect each signal from classA to the slots of classB and vise versa.
It is possible that I create many instances of these two classes ( = many pair connections)!
Pair1ClassA <----->Pair1ClassB
Pair2ClassA<------>Pair2ClassB .... etc..
When the user clicks sth. on Pair1ClassAInstance the slot of Pair1ClassBInstance must be called and the same with the other instances...
Do I need to use the "Dynamic signals and slots" described here
http://doc.trolltech.com/qq/qq16-dynamicqobject.html ?
Or is there another, better workaround?
Something like:
Connecting two objects and storing this connection somewhere and after that connecting another pair...etc...
Edit:
The signals are availalbe in the Classes( no need to create them at runtime).
The slots too...just connecting at runtime...
Bookmarks