|Subject:||[Qt-interest] QRunnable question|
|Date:||Tue, 4 May 2010 15:53:31 +0530|
Since QRunnable doesn't inherit from QObject, can i do this:
class MyTask : public QObject, public QRunnable
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.
_______________________________________________ Qt-interest mailing list Qt-interest@xxxxxxxxxxxxx http://lists.trolltech.com/mailman/listinfo/qt-interest
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||Re: [Qt-interest] Segmentation Fault in QWidget::Show() after upgrading to version 4.6.2-4 (on debian), Vincent HobeÃka|
|Next by Date:||Re: [Qt-interest] QRunnable question, amulya rattan|
|Previous by Thread:||Re: [Qt-interest] How to save the content in tree structure to file, Srdjan Todorovic|
|Next by Thread:||Re: [Qt-interest] QRunnable question, amulya rattan|
|Indexes:||[Date] [Thread] [Top] [All Lists]|