What is the actual use of connectNotify and bool QApplication::notify ?
General and Desktop
22
Posts
8
Posters
10.4k
Views
1
Watching
-
I had the same question when I read this.
I understand connectNotify() and disconnectNotify () as below.
MyClass.h
'void connectNotify(const char *signal);'
MyClass.cpp
'void MyClass::connectNotify(const char *signal)
{
//find the signal connected as in documentation
if (signal == QMetaMethod::fromSignal(&MyObject::valueChanged)) {
// signal is valueChanged
}
}'Is this correct?