Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt & google maps for iOS/Android
QtWS25 Last Chance

Qt & google maps for iOS/Android

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 10 Posters 9.1k Views
  • 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.
  • W Offline
    W Offline
    whocares1
    wrote on last edited by
    #1

    Hello,

    We are a group of students working on a cross platform mobile app, and we are currently looking for a framework to do so.
    We would like to know if Qt allows us to develop an app which includes the google maps api, and that would be working for both android and iOS, with the possibility to add markers on the map with On-Touch events and to get the user location (GPS Coordinates) (The features which are avaible in the google maps api)

    Thanks in advance !

    1 Reply Last reply
    0
    • benlauB Offline
      benlauB Offline
      benlau
      Qt Champions 2016
      wrote on last edited by
      #2

      We have tested to integrate native Google Map SDK on Android. Basic feature is ok but there has few problems. Since Qt do not provide mechanism to embed Android view component into QML. It has to draw on top of QML. Therefore, we can not draw anything on top of the Google map by QML. Moreover, if we need to move the view component with effects like move-in , the animation may not be in-sync with QML.

      Still finding solution for those problems.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DamianMilo
        wrote on last edited by
        #3

        Hello guys,
        Any result with this?

        Regards,
        Damian Czechowicz
        Junior Software Engineer

        Milo Solutions
        http://milosolutions.com

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          you may want to watch/vote this "BUGREPORT":https://bugreports.qt-project.org/browse/QTBUG-35648.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • benlauB Offline
            benlauB Offline
            benlau
            Qt Champions 2016
            wrote on last edited by
            #5

            Voted.

            By the way , for using Google Maps on Qt in Android , there has another issue. The Google Maps native library is bundled with the Google Play Services SDK. The SDK has its own layout and resource file. It can not be existed in the form of a single jar file.

            When we are doing Android development, it have to add the project reference into Eclipse so that it will be build together with current project.

            Currently I can not find any method with Qt Creator to add the library reference during build. Instead, I have press "run" on Qt Creator to copy all the files into the build directory. Then I launch Eclipse , add the project reference , then build it.

            It is very troublesome.

            1 Reply Last reply
            0
            • U Offline
              U Offline
              uTMY
              wrote on last edited by
              #6

              Still hoping for an elegant solution to this, any further news please?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Muhammad
                wrote on last edited by
                #7

                I was wondering as there is a Google map app in every android device nowadays, can't I just send coordinates from my app to the Google map app and lunch the Google map app with these coordinates?

                I don't have endpoint, I just have Checkpoints.

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  Brexis
                  wrote on last edited by
                  #8

                  bq. I was wondering as there is a Google map app in every android device nowadays, can’t I just send coordinates from my app to the Google map app and lunch the Google map app with these coordinates?

                  You have two ways :
                  1- Use QDesktopServices to open a google map url :
                  @
                  QString link = "http://maps.google.com/maps?&daddr="+location;
                  QDesktopServices::openUrl(link);
                  @
                  2- Use AndroidExtra module and launch a Google Map Intent :
                  @
                  String uri = "http://maps.google.com/maps?&daddr="+location;
                  Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
                  intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
                  if (intent.resolveActivity(m_context.getPackageManager()) != null) {
                  m_context.startActivity(intent);
                  }
                  @

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    patrickkidd
                    wrote on last edited by
                    #9

                    Thanks for your reply but I'm looking for a way to open it without leaving the app.

                    https://alaskafamilysystems.com/

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MangoCat
                      wrote on last edited by
                      #10

                      Bump. 5 years later, still looking for a solution.

                      Learning Kotlin is one way, but it would be really nice to integrate Maps and the Qt API.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by SGaist
                        #11

                        Maybe this QtLocation plugin might be of use.

                        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

                        • Login

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