Tom Schindl wrote:

Hi Tom,

> b) Ask some questions:
>    - How do I sync back from a None-UI-Thread (in databinding this the
>      task of the Realm you see above)

You sync back to main thread using either queued connections

http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/qtjambi-signalsandslots.html
http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/core/Qt.ConnectionType.html

or by posting a custom event

http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/core/QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject,%20com.trolltech.qt.core.QEvent)

>    - How do I find out which thread is the UI-Thread to know when I have
>      sync back to the UI-Thread

You can always check QApplication.instance().thread() versus 
Thread.currentThread() to see if the two are the same or not. They will 
be the same when you are executing code in the main thread.

>    - Why are qt-jambi.jars not packaged as OSGi-Bundles? Would this be
>      possible

Primarily because nobody asked for it ;)

best regards,
Gunnar
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to