View Full Version : signal to signal
jajdoo
1st September 2010, 19:22
just a small question:
when i connect two signals - is the connection two way, or i need to make two connections? (one for each direction?)
tbscope
1st September 2010, 19:29
It's a one way direction.
And please, for the love of something, don't create a second connection that does the reverse.
Think about it.
What do you want to achieve? Maybe there's another way.
jajdoo
1st September 2010, 20:44
i want objects in 3d space to be deletable from both the render window and the objects menu (qtreewidget).
got a different approach?
wysota
1st September 2010, 21:05
So why not connect signals from the two actions to a single slot responsible for deletion? Or even place the same action in two places (that's what I'd do). I don't see how signal propagation would help you.
marcvanriet
2nd September 2010, 00:32
Hello,
As I see it, both the render window and the objects menu are a way to show your collection of 3D objects.
You should have something else (a class) to hold this collection of objects, and this class should have a method (or slot) to delete an object.
Best regards,
Marc
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.