file1.cpp:
connect(this, SIGNAL(newOrbCorrections(QList<t_orbCorr>)),
BNC_CORE, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)));
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)));
To copy to clipboard, switch view to plain text mode
file2.cpp:
void t_bncCore
::slotNewCorrLine(QString line,
QString staID, bncTime coTime
) {
……………………………………
}
void t_bncCore::slotNewOrbCorrections(QList<t_orbCorr> orbCorrections) {
……………………………………………………
}
void t_bncCore::slotNewCorrLine(QString line, QString staID, bncTime coTime) {
QMutexLocker locker(&_mutex);
……………………………………
}
void t_bncCore::slotNewOrbCorrections(QList<t_orbCorr> orbCorrections) {
QMutexLocker locker(&_mutex);
……………………………………………………
}
To copy to clipboard, switch view to plain text mode
main.cpp
{
emit newCorrLine("ddd", _staID, _lastTime);
emit newOrbCorrections(orbCorrections);
}
{
emit newCorrLine("ddd", _staID, _lastTime);
emit newOrbCorrections(orbCorrections);
}
To copy to clipboard, switch view to plain text mode
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.
Bookmarks