Thanks for your reply, Eskil. It makes a whole lot of sense now :-)

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Eskil Abrahamsen 
Blomfeldt
Sent: Thursday, October 15, 2009 3:50 AM
To: Ruchika Marda
Cc: Lista-qt-jambi
Subject: Re: [Qt-jambi-interest] Blog about porting Qt 4.6 to Java


> As far as parenting a window is concerned, the code is using 
> WEmbeddedFrame.java and passing a QWinID to WEmbeddedFrame. 
> I am not sure why you suggested I will need to use Win32 API 
> (Windows)/XEmbed(Unix) in order to re-parent AWT widgets to QWidget(C++). Can 
> I not use winID of a QWidget and pass it to WEmbeddedFrame?
>   

WEmbeddedFrame is a platform-specific class which only exists on Windows 
platforms. On X Windows, the equivalent class is called XEmbeddedFrame. 
All the platform-specific code in the bridge is in the .cpp-files. Look 
at those to see how embedding is done differently on Linux and Windows.

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

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

Reply via email to