[Interest] Signal Slot Ordering (or Not)

Harri Porten porten at froglogic.com
Thu May 19 10:49:12 CEST 2016


On Thu, 7 Apr 2016, Peter M. Groen wrote:

> In a for-loop, I'm sending 10 signals directly in one burst, like so :
>
>    for( int nCount = 0; nCount < number_of_signals; nCount++ )
>    {
>        std::cout << "[SignalSender::timerTimeOut] - "
>                  << QString( "Signal Sending. Timer : %1, Run : %2,
>    Sequence : %3" ) .arg( timer_interval_msecs )
>                     .arg( run_number )
>                     .arg( nCount ).toStdString() << std::endl;
>        emit signalSendSequence( timer_interval_msecs, run_number,
>    nCount ); QCoreApplication::processEvents();
>    }

The processEvents() call in the loop turns "one burst" into ten. Or worse.

Harri.



More information about the Interest mailing list