How do I integrate Java Swing/awt and QT windows
Posted on 2007-10-09
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.