关于信号与槽的研究
DisConnect:
bool QObject::disconnect(const QObject * sender, const char * signal, const QObject * receiver, const char *method) [static]
1. Disconnect everything connected to an object's signals:
取消某个对像的所有的信号连接:
disconnect(myObject,0,0,0);
equivalent to the non-static overloaded function
等价于:
myObject->disconnect();
2. Disconnect everything connected to a specific signal:
取消某个信号与它对应槽的所有连接:
disconnect(myObject, SIGNAL(mySignal()),0,0);
equivalent to the non-static overloaded function
等价于:
myObject->disconnect(SIGNAL(mySignal()));
3. Disconnect a specific receiver:
断开某个接收对象的连接:
disconnect(myObject,0, myReceiver,0);
equivalent to the non-static overloaded function
等价于:
myObject->disconnect(myReceiver);