Hi,
Let’s say that I create a TCanvas (which is displayed in an independent window) and register it in some kind of manager (because I need a reference to update it).
I connect a slot to the Closed signal of this TCanvas. When the user closes it, the slot is called and I would like to unregister this canvas from the manager. Unfortunately, the Closed signal doesn’t have any argument and I have no clue how to know which TCanvas has been closed.
To say it in other words, I would like to know which TCanvas has been closed when the slot corresponding to the Closed signal is called.
How can I do that ? I thought about extending TCanvas, but I would prefer to keep it simple if possible…
Thanks in advance,
Barth