2
焕我想为了使用私有对象的信号出现以下其父对象的信号,我做的:Qt信号 - 时隙交互。
1. I create a signal and a slot (named, let's say, ParentSignal, ParentSlot)
2. connect(private_objcet, SIGNAL(someSignal()), this, SLOT(ParentSlot()));
3. and define parent slot like this:
void ParentSlot() { emit ParentSignal(); }
有没有办法做到这一点的过程直接,也就是说,没有ParentSlot?
您可以连接信号信号:[http://doc.qt.nokia.com/4.7-snapshot/qobject.html#connect](http://doc.qt .nokia.com/4.7快照/ qobject.html#连接) – petraszd 2010-06-28 10:37:42