Re: [Interest] QTimer and QThread

2013-08-01 Thread Dmitry Kozlov
On 01.08.2013 12:36, Mandeep Sandhu wrote: 1) From QTimer documentation: */Qt uses the timer's/**/thread affinity /**/to determine which thread will emit the/**/timeout()

Re: [Interest] QTimer and QThread

2013-07-31 Thread Mandeep Sandhu
1) From QTimer documentation: > *Qt uses the timer's **thread > affinity > ** to determine which thread will emit the > **timeout() > **signal. Because of this, you must start and stop t

Re: [Interest] QTimer and QThread

2013-07-31 Thread Dmitry Kozlov
On 31.07.2013 17:01, Alexander Syvak wrote: Here's the snippet below from implementation of the run method. The class inherits a class inheriting QThread. ... screenshot_qtmr=newQTimer;//(this); screenshot_qtmr->moveToThread(this); qDebug() << connect(screenshot_qtmr, SIGNAL(timeout

Re: [Interest] QTimer and QThread

2013-07-31 Thread Mandeep Sandhu
On Wed, Jul 31, 2013 at 2:31 PM, Alexander Syvak wrote: > Here's the snippet below from implementation of the run method. The class > inherits a class inheriting QThread. > ... >screenshot_qtmr = new QTimer;//(this); > > screenshot_qtmr->moveToThread(this); > > This stmt is not necessa

Re: [Interest] QTimer and QThread

2013-07-31 Thread Tomasz Olszak
2013/7/31 Alexander Syvak > Here's the snippet below from implementation of the run method. The class > inherits a class inheriting QThread. > ... >screenshot_qtmr = new QTimer;//(this); > > screenshot_qtmr->moveToThread(this); > > qDebug() << connect(screenshot_qtmr, SIGNAL(timeo

[Interest] QTimer and QThread

2013-07-31 Thread Alexander Syvak
Here's the snippet below from implementation of the run method. The class inherits a class inheriting QThread. ... screenshot_qtmr = new QTimer;//(this); screenshot_qtmr->moveToThread(this); qDebug() << connect(screenshot_qtmr, SIGNAL(timeout()), this, SLOT(on_screenshot_timeout())