Link to home
Start Free TrialLog in
Avatar of Robert_Stubbs
Robert_Stubbs

asked on

How do I integrate Java Swing/awt and QT windows

I'm trying to put a java swing/awt window (JFrame/JDialog) on top of a Qt main application.  I would like to have the parenting of the qt/java windows so that the java frame/dialog behave like its parent of the qt application.  I was able to successfully integration X/Motify and Win32 by using the window id and then setting the X/Motif /  win32 window as the parent of the java window.  In looking at the Qt api, I wasn't sure if Qt would allow the reparenting to be done in the same way (qtwindow->setParent(java->winid)).  This is because java and X behave differently than java and win32.  Since Qt is a layer on top of both, I'm not sure if one implementation would work for both Qt on windows and Qt on unix.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial