PDA

View Full Version : # of connections?



gfunk
2nd August 2006, 23:22
Is there a function to tell how many slots have been connected to a particular widget's signals? For instance, I might want to grey out (disable) some menu actions if they have not yet been connected to a slot. I see some functions in the metaObject, but I think they only list static # of signals and slots, not the actual active connected signals/slots.

Maybe this is a bad idea...?

jpn
2nd August 2006, 23:31
Maybe int QObject::receivers() (http://doc.trolltech.com/4.1/qobject.html#receivers)?