• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

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.
1 Solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now