[Interest] How to start object in the thread?
igor.mironchik at gmail.com
igor.mironchik at gmail.com
Sun Jun 8 12:10:25 CEST 2014
Hi,
for example I have Object with slot start.
And I create that object with the next code:
QCoreApplication app( argc, argv );
Object o;
QThread t;
o.moveToThread( &t );
t.start();
QTimer::singleShot( 0, &o, SLOT( start() ) );
app.exec();
But this code doesn’t invoke slot start() after launching.
And there is my question: how to invoke SLOT start() of Object on the different thread and app start-up?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140608/eecaa723/attachment.html>
More information about the Interest
mailing list