zhaolewen
15th November 2014, 08:48
file1.cpp:
connect(this, SIGNAL(newOrbCorrections(QList<t_orbCorr>)),
BNC_CORE, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)));
connect(this, SIGNAL(newCorrLine(QString, QString, bncTime)),
BNC_CORE, SLOT(slotNewCorrLine(QString, QString, bncTime)));
file2.cpp:
void t_bncCore::slotNewCorrLine(QString line, QString staID, bncTime coTime) {
QMutexLocker locker(&_mutex);
…………………à ¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦
}
void t_bncCore::slotNewOrbCorrections(QList<t_orbCorr> orbCorrections) {
QMutexLocker locker(&_mutex);
…………………à ¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢ €¦â€¦â€¦â€¦â€¦â€¦
}
main.cpp
{
emit newCorrLine("ddd", _staID, _lastTime);
emit newOrbCorrections(orbCorrections);
}
the slot function slotNewCorrLine can be correctly called ,but the function slotNewOrbCorrections can not be called.
I am very confusing about the phenomenon.
Looking forward to your answer,Thank you very much.
connect(this, SIGNAL(newOrbCorrections(QList<t_orbCorr>)),
BNC_CORE, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)));
connect(this, SIGNAL(newCorrLine(QString, QString, bncTime)),
BNC_CORE, SLOT(slotNewCorrLine(QString, QString, bncTime)));
file2.cpp:
void t_bncCore::slotNewCorrLine(QString line, QString staID, bncTime coTime) {
QMutexLocker locker(&_mutex);
…………………à ¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦
}
void t_bncCore::slotNewOrbCorrections(QList<t_orbCorr> orbCorrections) {
QMutexLocker locker(&_mutex);
…………………à ¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢â‚¬Â¦Ã¢ €¦â€¦â€¦â€¦â€¦â€¦
}
main.cpp
{
emit newCorrLine("ddd", _staID, _lastTime);
emit newOrbCorrections(orbCorrections);
}
the slot function slotNewCorrLine can be correctly called ,but the function slotNewOrbCorrections can not be called.
I am very confusing about the phenomenon.
Looking forward to your answer,Thank you very much.