方法1:QObject::disconnect(senderInstance, &Sender::mySignal, this, nullptr); 方法2:connect的对象销毁了则自动disconnect。