Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Running another application within a QDockWidget
Forum Updated to NodeBB v4.3 + New Features

Running another application within a QDockWidget

Scheduled Pinned Locked Moved 3rd Party Software
7 Posts 3 Posters 3.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
    pcorcoran
    wrote on last edited by
    #1

    Does anyone know how to start another application within a QDockWidget? For example I am trying to start FlightGear within a QDockWidget. Any help on this subject would be greatly appreciated.

    Phillip

    pcorcoran

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hipersayan_x
      wrote on last edited by
      #2

      Do you mean embedding an application window inside a QDockWidget as a normal widget, or just start it from QDockWidget in its own window?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pcorcoran
        wrote on last edited by
        #3

        Embedding an application inside a QDockWidget as a normal widget. As for starting another application from a QDockWidget I was able to accomplish this by using QProcess.

        Have you ever tried to embed an application?

        pcorcoran

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          This is not something that can be answered in general.
          You have to integrate the window of the started application. This depends on the platform and the used technologies if that is possible and how. On windows for example for "normal" windows, you must set the parent of the window be the dockWidget (how ever you do that :-) ).

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pcorcoran
            wrote on last edited by
            #5

            Tried setting the parent but the second application continues to start outside of the widget. :(

            pcorcoran

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hipersayan_x
              wrote on last edited by
              #6

              If you are working in a *nix like OS you can use "QX11EmbedContainer":http://qt-project.org/doc/qt-4.8/qx11embedcontainer.html.
              FlightGear is the Open Source proyect, right? In such case, you can try modifying the source to do all render in a QGraphicsWidget or QGLWidget inside your application.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pcorcoran
                wrote on last edited by
                #7

                QX11EmbedContainer seems to be only available for linux but I am trying to stay on a Windows platform for this project.

                Do you know of an equivalent QX11EmbedContainer class for win 7?

                pcorcoran

                1 Reply Last reply
                0

                • Login

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