Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt/Java widget encapsulation

    Brainstorm
    2
    8
    3206
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Pt_develop last edited by

      I'm wondering if anyone has tried to encapsulate a java program into a Qt widget? I have a simple Qt project I am working on in order to learn Qt and would like to have a widget that does this encapsulation (specifically NetBeans). I've looked at Qprocess, Qt Jambi and JNI but none of them seem to be able to do the above encapsulation (or perhaps I missed something). The java encapsulation (if it works) would only be a small part of the project so I'd like to keep the end result as self contained as possible (e.g., via tabbed or stacked widgets) rather than spawn a host of interactive programs. Anyone have any experience with such encapsulations which they'd care to share?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        AFAIK, what you are describing makes me think of QtJambi, have a look at that project.

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • P
          Pt_develop last edited by

          SGaist: Thanks for the reply. I looked at Qt Jambi but unfortunately that project is the inverse of what I am looking for. To quote from "JAVAWORLD":http://www.javaworld.com/javaworld/jw-08-2007/jw-08-qtjambi.html "Essentially, Qt Jambi places a Java abstraction layer over Qt's C++ libraries".

          In general I want to use the Qt interface, c++, and especially Qt's SIGNAL/SLOT mechanism for most of the program and only want to rely on external programs for things that are not supported by Qt (e.g., accessing all DOM nodes including text nodes in QtWebKit) or for things which I'd have to reinvent (e.g., NetBeans). More specifically, in terms of the latter, how could one create a Qt widget that contains a program like NetBeans?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            To understand you right: you want to run a full featured java IDE in a Qt widget ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • P
              Pt_develop last edited by

              SGaist:
              I know it sounds ridiculous. Actually I only want the HTML5 part of the IDE but NetBeans is only the prototype for the larger problem.

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                On what OS are you working ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  On a related note to QtJambi:

                  Did you see "this":http://blog.qt.digia.com/blog/2007/08/24/extremely-interesting-jambi-trick-x-instantiating-java-widgets-from-c/ ? Might be something for you

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply Reply Quote 0
                  • P
                    Pt_develop last edited by

                    I'm using windows 7 currently with MinGW. Thanks for the blog reference. Unfortunately none of the blog links are valid but I think it may provide a roadmap to something useful.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post