[Interest] invokeMethod, Q_RETURN_ARG and qint32

2013-08-06 Thread Dmitry Kozlov
Hello. I have a problem with invoking method with qint32 return type. QMetaObject::invokeMethod always returns false -> method doesn't called. // main.cpp #include "myobj.h" #include #include int main(int argc, char *argv[]) { MyObj obj; qint32 result; qDebug() << "invoke" << QM

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 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