[Qt-interest] Basic QThread question

william.crocker at analog.com william.crocker at analog.com
Thu May 6 13:47:35 CEST 2010


> 
> This is the area where I'm having trouble. Is the following line correct?
> 
>> connect( m_workerThread->poller(), SIGNAL( value( int ) ),
>>          this, SLOT( processValue( int ) ) );
> 


Always check the return status:

     if( !connect(...) )
         Q_ASSERT(false);



More information about the Qt-interest-old mailing list