How I can call QX11embedcontainer from Java?
How I can call QX11embedcontainer from Java?I read about JNI and , whichever functions I need to call I need to declare in java. But can i do something like by putting my application in QX11embedcontainer and just write JNI interface for only for it, which handles everything? Or I need to write Java classes for each and every C++ class respectively?
please reply someone.
Re: How I can call QX11embedcontainer from Java?
Maybe you could describe what your actual goal is.
Do you want to embed a Java application's window into a Qt application's window?
Cheers,
_
Re: How I can call QX11embedcontainer from Java?
I have my qt application and now I want to integrate it in eclipse, this i want to achieve, but i didn't get any way, to do. :(
Re: How I can call QX11embedcontainer from Java?
QX11EmbedContainer is for the the other way around, embedding an X11 window inside a Qt application.
What you need is a way to embed the X11 window of your Qt application into another X11 application.
You'll need to check the libraries used to write Eclipse, SWT if I remember correctly, how it handles X11Embed.
Cheers,
_
Re: How I can call QX11embedcontainer from Java?
Yeah, I also thought about SWT, but there also dependencies :(
Another thing is QX11EmbedContainer is not supported more QT5.X onwards. So for that any alternatives? AS something what i found is createWindowContainer(myWindow).
Is that a right way to get same feature in Qt5.x? Sorry , May be it will like inadequate question but, i just started about learning Qt.
Thanks :)
Re: How I can call QX11embedcontainer from Java?
Quote:
Originally Posted by
dikku
Yeah, I also thought about SWT, but there also dependencies :(
Not sure what you mean, SWT is the toolkit Eclipse is written in no?
Quote:
Originally Posted by
dikku
Another thing is QX11EmbedContainer is not supported more QT5.X onwards. So for that any alternatives? AS something what i found is createWindowContainer(myWindow).
QWindow::fromWinId() is the equivalent in Qt5.
But equally not what you need, since the Qt application is not the host, Eclipse is.
Cheers,
_