Fábio wrote:
> Hi Gunnar,
>
> Thank you for your attention.
>
> If not abuse, can someone explain to me how I implement the option 1?
>
> My code is this:
>
> (...)
> //while (true){ //The application hang :)
> MyClass class = new MyClass(); //MyClass implements Runnable
> QThread runner = new QThread (class);
> runner.start();
> //}
> (...)
I suggest you read up on signals and slots:
http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/qtjambi-signalsandslots.html
Then you can use that to hook into the QThread API:
http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/QThread.html
-
Gunnar
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest