PDA

View Full Version : the usage of connect in QT



zhaolewen
15th November 2014, 05:24
Hello, Everyone:
I read a code block in an open source program as follows:


connect(getThread,SIGNAL(newObs(QByteArray, QList<t_satObs>)),
this, SIGNAL(newObs(QByteArray, QList<t_satObs>)));

The problem is that two parameters of the connect function are both 'SIGNAL'.
Can you give me some description of the usage ,or some links about the usage.

Thank you very much. Sorry but my english is not very good.

ChrisW67
15th November 2014, 06:02
From Signals and Slots (http://qt-project.org/doc/qt-4.8/signalsandslots.html)


It is even possible to connect a signal directly to another signal. (This will emit the second signal immediately whenever the first is emitted.)