Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to open another application inside a Qt GUI
Qt 6.11 is out! See what's new in the release blog

How to open another application inside a Qt GUI

Scheduled Pinned Locked Moved General and Desktop
14 Posts 3 Posters 4.6k 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #2

    If you want to embed Earth view into your app, take a look at KDE's Marble. Alternatively, you could probably run Google Earth using QAX, but that would work on Windows only.

    If you do not need to embed the view, then you can simply execute Google Earth application using QProcess.

    (Z(:^

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thescouse
      wrote on last edited by
      #3

      I would be working in windows.
      And if I don't embed it and try running it on another computer, it wouldn't work, right?

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #4

        That really depends on how you do it. If you just embed a registered container using QAX* classes, then it can still fail on another computer if Earth is not installed there. So, if you want to be sure that the application is available, you need to force your users to install it together with your application, or bundle the package together with your app (but be careful about licensing!).

        (Z(:^

        1 Reply Last reply
        0
        • T Offline
          T Offline
          thescouse
          wrote on last edited by
          #5

          So, if the other computer has google earth installed, it would work alright?
          Even if it has Ubuntu installed? Or any other OS for that matter?

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #6

            QAX* set of classes == Qt ActiveX. It works only on Windows. But even there it is not guaranteed to "just work". You need to test yourself ;)

            Maybe Google provides some cross-platform library solution that would work on all platforms, I don't know. That is why I have recommended taking a look at Marble: it's Qt-based, powerful and cross-platform.

            (Z(:^

            1 Reply Last reply
            0
            • T Offline
              T Offline
              thescouse
              wrote on last edited by
              #7

              I checked Marble, but the job requires to be done on google earth.
              So, I have to find a solution for that only. And since most probably the app has to work in Ubuntu, I can't go for QAx... :/

              1 Reply Last reply
              0
              • T Offline
                T Offline
                thescouse
                wrote on last edited by
                #8

                But thanks for your help... :)

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #9

                  You are welcome.

                  There seems to be a JS API for Google Earth: "link":https://developers.google.com/earth/.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    thescouse
                    wrote on last edited by
                    #10

                    Thanks again.. ;)

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      tackat
                      wrote on last edited by
                      #11

                      Just out of curiosity: Is there any particular technical reason why you can not use Marble? :) Is there any requirement that we - the Marble authors - could provide/implement for you on the Marble side?

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        thescouse
                        wrote on last edited by
                        #12

                        @tackat
                        sorry for this late reply..but it was the requirement of the task to do it on google earth specifically :)
                        so, I can't implement it on Marble.

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          tackat
                          wrote on last edited by
                          #13

                          Thanks for the reply! :)

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            thescouse
                            wrote on last edited by
                            #14

                            In the end I had to ditch Qt for this task.. :) the answer was serial library.. :P

                            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