Hi Gunnar, Well I managed to get this up and running using native code to initialize the QApplication. I can now create a fullscreen application that paints transparent on the screen, cool! One thing is still missing, if I try to do this with a QGLWidget the screen turns black, QWidget is ok... any idea why GL painting fails on this ?
-=Børge Gunnar Sletta wrote: > 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
