Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Qt/Java widget encapsulation
Forum Updated to NodeBB v4.3 + New Features

Qt/Java widget encapsulation

Scheduled Pinned Locked Moved Brainstorm
8 Posts 2 Posters 4.2k Views 1 Watching
  • 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 Offline
    P Offline
    Pt_develop
    wrote on 30 May 2013, 17:48 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 May 2013, 20:03 last edited by
      #2

      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
      0
      • P Offline
        P Offline
        Pt_develop
        wrote on 30 May 2013, 21:01 last edited by
        #3

        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
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 30 May 2013, 21:05 last edited by
          #4

          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
          0
          • P Offline
            P Offline
            Pt_develop
            wrote on 30 May 2013, 21:24 last edited by
            #5

            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
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 30 May 2013, 21:44 last edited by
              #6

              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
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 30 May 2013, 21:47 last edited by
                #7

                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
                0
                • P Offline
                  P Offline
                  Pt_develop
                  wrote on 30 May 2013, 23:09 last edited by
                  #8

                  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
                  0

                  1/8

                  30 May 2013, 17:48

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved