How do I  integrate Java Swing/awt and QT windows

Posted on 2007-10-09
Medium Priority
Last Modified: 2008-02-01
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.
Question by:Robert_Stubbs
LVL 92

Accepted Solution

objects earned 1000 total points
ID: 20045639

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question