1 #include <QApplication>
4 class Q43Thread : public QThread{public:void run(){exec();}}; /// qt < 4.3 backwards compatibility
10 class Bla : public QObject
14 QString say(QString a)
21 int main(int argc,char **argv)
23 QApplication app(argc,argv);
28 QxtFuture f= QxtSlotJob::detach(&thread,&q,SLOT(say(QString)),Q_ARG(QString, "hi"));
29 qDebug()<<"result is: "<<f.delayedResult(3000);