Hi
is there any method to check if a signal is connected to a slot yet?
regards.
Hi
is there any method to check if a signal is connected to a slot yet?
regards.
Sure, there must be something in QMetaObject but I am to lazy to look into...
Some simple options which might solve your issue are: Use Qt::UniqueConnection when connecting or have a look at QObject::receivers().
You can also use connectNotify and disconnectNotify in your object.
Bookmarks