[Qt-interest] QRunnable question
amulya rattan
talk2amulya at gmail.com
Tue May 4 12:23:31 CEST 2010
Guys,
Since QRunnable doesn't inherit from QObject, can i do this:
class MyTask : public QObject, public QRunnable
{
Q_OBJECT
protected:
void run()
{
qDebug() << "asdfa";
}
}
and expect signal/slots to work? The reason I'd like this to work is i dont
want to use QThread, but QThreadPool. My application has a lot of threads
already running which i'd like to take advantage of. Secondly, task is heavy
so more the threads are working on it, better it would be.
Appreciate any input.
Thanks,
~Amulya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100504/4799af01/attachment.html
More information about the Qt-interest-old
mailing list