Facebook
From Scanty Pintail, 7 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 94
  1.         connect(thread, static_cast<void(QThread::*)(QThread::QPrivateSignal)>(&QThread::finished),
  2.             [=]()
  3.             {
  4.                 qDebug() << __FUNCTION__ << "Wait deleted thread:";// << waitName;
  5.             });
  6.         connect(thread, &QThread::started,
  7.             [waitName, waitTime, waitObject, waitFunction]()
  8.             {
  9.                 Wait wait(waitName);
  10.                 wait._asynchronousWait(waitTime, waitObject, waitFunction);
  11.             });
  12.  
  13.         thread->start();