Børge Austvold wrote:
> Hi,
> 
> Hmm, what exactly do you mean by "packing it into a function" ? Is it 
> possible to initialize the QApplication (jambi side) from a c++ JNI 
> function ?

On the C++ side construction of a QApplication is slightly different, 
its done in the QApplication constructor by passing in argc and argv, as 
you may know. In Jambi we put QApp constructor into a static initializer 
which also sets up some cleanup things. If you instantiate QApp from the 
native side, you should also look at what the QApplication.initialize() 
function does and do the same things.

The Java version of QApplication doesn't have the X11 spesific extra 
arguments, so you would have to go native to achieve this.

-
Gunnar

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

Reply via email to