views:

54

answers:

1

Whan I want to use a signal of a private object in order to arise a signal of its parent object I do the following:

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();
}

Is there any way to do this process directly, that is, without ParentSlot?

+8  A: 

You can connect signal to signal:

http://doc.qt.nokia.com/4.7-snapshot/qobject.html#connect

petraszd