I just up'd a little template snippet that you might find as useful as I do: It's a QPointer which allows to connect signals and slots to it, which will always arrive or come from the pointed-to object.
It's here.
Regards,
ntessore
I just up'd a little template snippet that you might find as useful as I do: It's a QPointer which allows to connect signals and slots to it, which will always arrive or come from the pointed-to object.
It's here.
Regards,
ntessore
katrina (20th May 2008)
Looks sweet!
What happens when the new pointer does not have the needed slow? Do you throw a warning or just ignore?
The MetaPointer has all slots of the base class used as its template argument. Since I don't think it is possible to dynamically remove static slots, this cannot happen.
Bookmarks