Home > Back-end >  Didn't come for a long time, a strange Qt signal channel problems, want to ask, signal trigger
Didn't come for a long time, a strange Qt signal channel problems, want to ask, signal trigger

Time:12-06

 
Void LeftPanelWidget: : SearchDateOfDay (const QString & amp; Id, const QDate date)
{
QTime time=QTime (0, 0, 0);
QDateTime datetime=QDateTime (date, time);
Int timestamp=datetime. ToTime_t ();

QString channelId=id;
Emit sglQueryTimeline (channelId, timestamp);
QDebug () & lt; <"Hahahaha";
}


 

The connect (this, & amp; LeftPanelWidget: : sglQueryTimeline, [this] (QString & amp; Id, int ts)
{
QDebug () & lt; <"Query" timeline & lt; });


Step through emit executed, but only the first execution the groove function, then the back of the emit did not trigger the execution of the groove function, in order to debug, the signal has no associated elsewhere, mystery, your guidance, give a direction
  • Related