[Qt-jambi-interest] ARGB Visuals in QT Jambi ?

Gunnar Sletta gunnar at trolltech.com
Wed Nov 26 16:15:47 CET 2008


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




More information about the Qt-jambi-interest mailing list