How do I  integrate Java Swing/awt and QT windows

Posted on 2007-10-09
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

    LVL 4

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    Exchange and Third Party application. 8 45
    scoresIncreasing challenge 10 48
    factorial example challenge 10 44
    java set up 1 35
    Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
    C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (…
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now