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. Issues with maps
QtWS25 Last Chance

Issues with maps

Scheduled Pinned Locked Moved Solved General and Desktop
20 Posts 5 Posters 6.0k 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.
  • Pablo J. RoginaP Offline
    Pablo J. RoginaP Offline
    Pablo J. Rogina
    wrote on last edited by
    #4

    @davidesalvetti it looks like you don't have OpenSSL support on the platform your application is running, which is...?

    Upvote the answer(s) that helped you solve the issue
    Use "Topic Tools" button to mark your post as Solved
    Add screenshots via postimage.org
    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

    D 1 Reply Last reply
    1
    • Pablo J. RoginaP Pablo J. Rogina

      @davidesalvetti it looks like you don't have OpenSSL support on the platform your application is running, which is...?

      D Offline
      D Offline
      davidesalvetti
      wrote on last edited by
      #5

      @Pablo-J.-Rogina thanks for your answer. What do you mean with platform? I'm using QT 5.9.1 on windows 10 x64.

      If the problem is OpenSSL how can I get it?

      1 Reply Last reply
      0
      • Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #6

        @davidesalvetti said in Issues with maps:

        What do you mean with platform?

        I mean the OS your application is running on, so you answered Windows 10 x64
        You may want to grab OpenSSL binaries here and you'll need files libeay32.dll and ssleay32.dll available, usually same folder as your application executable.

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        D 1 Reply Last reply
        3
        • Pablo J. RoginaP Pablo J. Rogina

          @davidesalvetti said in Issues with maps:

          What do you mean with platform?

          I mean the OS your application is running on, so you answered Windows 10 x64
          You may want to grab OpenSSL binaries here and you'll need files libeay32.dll and ssleay32.dll available, usually same folder as your application executable.

          D Offline
          D Offline
          davidesalvetti
          wrote on last edited by davidesalvetti
          #7

          @Pablo-J.-Rogina I copied the DDLs in this path C:\Qt\5.9.1\mingw53_32\bin .
          Now the Application output is this:

          Starting C:\Users\Documents\build-untitled1-Desktop_Qt_5_9_1_MinGW_32bit-Release\release\untitled1.exe...
          libpng warning: iCCP: known incorrect sRGB profile
          libpng warning: iCCP: known incorrect sRGB profile
          The program has unexpectedly finished.
          The process was ended forcefully.
          C:/Users/Documents/build-untitled1-Desktop_Qt_5_9_1_MinGW_32bit-Release/release/untitled1.exe crashed.
          

          I suppose that the warning "libpng warning: iCCP: known incorrect sRGB profile" is not relevant since it is about png files.
          Still crashes somehow, can't understand why. The code is simple, I just show the QWebView.

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

            Hi,

            You should run the debug version and get the stack trace. That will help identify the problem.

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

            D 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              You should run the debug version and get the stack trace. That will help identify the problem.

              D Offline
              D Offline
              davidesalvetti
              wrote on last edited by
              #9

              @SGaist thanks for your answer. In debug mode it doesn't even start:

              Starting C:\Users\Documents\build-untitled1-Desktop_Qt_5_9_1_MinGW_32bit-Debug\debug\untitled1.exe...
              The program has unexpectedly finished.
              The process was ended forcefully.
              C:/Users/Documents/build-untitled1-Desktop_Qt_5_9_1_MinGW_32bit-Debug/debug/untitled1.exe crashed.
              

              But that's a known issue of QtWebKit, am I wrong?

              K 1 Reply Last reply
              0
              • webzoidW Offline
                webzoidW Offline
                webzoid
                wrote on last edited by
                #10

                @davidesalvetti

                I've done pretty extensive work using Qt mapping functionality. I started with the QML mapping examples and now having this transposed into a QWidgets application - using QML <> C++ function calls to update and retrieve information from the maps. I must admit, I much prefer the ESRI/OpenStreetMaps to GoogleMaps.

                I find the QML implementation much faster and smoother than any QWebKit implementation I've come across plus there are signals available for when the map has loaded, etc.

                Willing to share code if this would help but I have successfully used the googlemaps plugin even though it is 3rd party.

                D 1 Reply Last reply
                1
                • webzoidW webzoid

                  @davidesalvetti

                  I've done pretty extensive work using Qt mapping functionality. I started with the QML mapping examples and now having this transposed into a QWidgets application - using QML <> C++ function calls to update and retrieve information from the maps. I must admit, I much prefer the ESRI/OpenStreetMaps to GoogleMaps.

                  I find the QML implementation much faster and smoother than any QWebKit implementation I've come across plus there are signals available for when the map has loaded, etc.

                  Willing to share code if this would help but I have successfully used the googlemaps plugin even though it is 3rd party.

                  D Offline
                  D Offline
                  davidesalvetti
                  wrote on last edited by
                  #11

                  @webzoid said in Issues with maps:

                  I started with the QML mapping examples and now having this transposed into a QWidgets application - using QML <> C++ function calls to update and retrieve information from the maps.

                  It's exactly what I'm looking for!

                  I must admit, I much prefer the ESRI/OpenStreetMaps to GoogleMaps.

                  The problem is that I need Satellite view that ESRI doesn't support, am I right? The quality of the ESRI/World Imaginery is not good enough.

                  Willing to share code if this would help but I have successfully used the googlemaps plugin even though it is 3rd party.

                  It would help a lot! Maybe can you share also some code that uses googlemaps plugin? It works in debug, but when in release it doesn't show me nothing and says:

                  qrc:/qml/qml/MapTrack.qml:119: Error: Cannot assign [undefined] to QDeclarativeGeoMapType*
                  

                  But if you see in my code here I use a GroupBox that should give me all the GeoMapTypes, but it gives me none. And this happens only in release, in debug everything works fine.

                  Thanks a lot for your time.

                  1 Reply Last reply
                  0
                  • webzoidW Offline
                    webzoidW Offline
                    webzoid
                    wrote on last edited by
                    #12

                    @davidesalvetti

                    The ESRI map provider does indeed support satellite imagery - I am using this (and all other supported map types) in my end application. I appreciate what you're saying about the quality of the imagery though. Given that we are in the days of 4K, I think Google and the likes need to step up with their map imagery :)

                    It will take a little while but I'll put together some example code for you which shows the QML stuff working in a QWidgets application.

                    I think in your case in your QML, the following line is wrong:

                    onCurrentIndexChanged: myMap.activeMapType = myMap.supportedMapTypes[currentIndex]
                    

                    Where is currentIndex obtained from? Have you tried replacing currentIndex with, say 1 just to test that the map type changes?

                    D 1 Reply Last reply
                    0
                    • webzoidW Offline
                      webzoidW Offline
                      webzoid
                      wrote on last edited by
                      #13

                      Have you tried the qml map viewer example application - it'll show you the available map types for a given provider.

                      Also, have you checked out the ArcGIS Qt Runtime - https://developers.arcgis.com/qt/

                      This is something I'm looking to move over to as it seems to be a pretty comprehensive mapping solution

                      1 Reply Last reply
                      0
                      • D davidesalvetti

                        @SGaist thanks for your answer. In debug mode it doesn't even start:

                        Starting C:\Users\Documents\build-untitled1-Desktop_Qt_5_9_1_MinGW_32bit-Debug\debug\untitled1.exe...
                        The program has unexpectedly finished.
                        The process was ended forcefully.
                        C:/Users/Documents/build-untitled1-Desktop_Qt_5_9_1_MinGW_32bit-Debug/debug/untitled1.exe crashed.
                        

                        But that's a known issue of QtWebKit, am I wrong?

                        K Offline
                        K Offline
                        Konstantin Tokarev
                        wrote on last edited by
                        #14

                        @davidesalvetti said in Issues with maps:

                        But that's a known issue of QtWebKit, am I wrong?

                        It works fine here, both debug and release. Debug version may crash because of assertion failures on some sites. If program doesn't start, it might be because not all dlls were copied

                        D 1 Reply Last reply
                        0
                        • K Konstantin Tokarev

                          @davidesalvetti said in Issues with maps:

                          But that's a known issue of QtWebKit, am I wrong?

                          It works fine here, both debug and release. Debug version may crash because of assertion failures on some sites. If program doesn't start, it might be because not all dlls were copied

                          D Offline
                          D Offline
                          davidesalvetti
                          wrote on last edited by
                          #15

                          @Konstantin-Tokarev what about this link? I downloaded these binaries https://github.com/annulen/webkit/releases/tag/qtwebkit-5.212.0-alpha2/qtwebkit-5.212.0_alpha2-qt59-mingw530-x86.zip , I extracted the files and I copied DDLs and others files in "C:\Qt\5.9.1\mingw53_32" in the corresponding folders.

                          The behaviour is that:

                          • in debug mode is I put this line the program doesn't even start:
                          QWebView *view = new QWebView(this);
                          
                          • in release mode, the program starts but while charging the google map it crashes.

                          My app is minimal, I'm just showing this QWebView. All the DDLs are installed, I've checked. Maybe the binaries are wrong? I don't think so, I'm using qt 5.9.1 with mingw53_32 on Windows 10 x64, they should be correct. What am I missing?

                          K 1 Reply Last reply
                          0
                          • D davidesalvetti

                            @Konstantin-Tokarev what about this link? I downloaded these binaries https://github.com/annulen/webkit/releases/tag/qtwebkit-5.212.0-alpha2/qtwebkit-5.212.0_alpha2-qt59-mingw530-x86.zip , I extracted the files and I copied DDLs and others files in "C:\Qt\5.9.1\mingw53_32" in the corresponding folders.

                            The behaviour is that:

                            • in debug mode is I put this line the program doesn't even start:
                            QWebView *view = new QWebView(this);
                            
                            • in release mode, the program starts but while charging the google map it crashes.

                            My app is minimal, I'm just showing this QWebView. All the DDLs are installed, I've checked. Maybe the binaries are wrong? I don't think so, I'm using qt 5.9.1 with mingw53_32 on Windows 10 x64, they should be correct. What am I missing?

                            K Offline
                            K Offline
                            Konstantin Tokarev
                            wrote on last edited by
                            #16

                            Right, it was fixed long time ago. Please use http://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/qtwebkit/ and Qt 5.10

                            D 1 Reply Last reply
                            1
                            • webzoidW webzoid

                              @davidesalvetti

                              The ESRI map provider does indeed support satellite imagery - I am using this (and all other supported map types) in my end application. I appreciate what you're saying about the quality of the imagery though. Given that we are in the days of 4K, I think Google and the likes need to step up with their map imagery :)

                              It will take a little while but I'll put together some example code for you which shows the QML stuff working in a QWidgets application.

                              I think in your case in your QML, the following line is wrong:

                              onCurrentIndexChanged: myMap.activeMapType = myMap.supportedMapTypes[currentIndex]
                              

                              Where is currentIndex obtained from? Have you tried replacing currentIndex with, say 1 just to test that the map type changes?

                              D Offline
                              D Offline
                              davidesalvetti
                              wrote on last edited by
                              #17

                              @webzoid said in Issues with maps:

                              The ESRI map provider does indeed support satellite imagery - I am using this (and all other supported map types) in my end application.

                              What mapType are you using? I have found ESRI/World Imaginary but the quality is a lot worst than google maps.
                              This is ESRI:
                              0_1519211741553_Esri.PNG

                              This is google maps:
                              0_1519211788838_Googlemaps.PNG

                              There is a lot of difference, that's why I need to use google maps plugin. But I don' t understand one thing: did you manage to use googlemaps provider also in release mode? Can you try it?

                              It will take a little while but I'll put together some example code for you which shows the QML stuff working in a QWidgets application.

                              Thank you very much, I'll wait your examples :)

                              I think in your case in your QML, the following line is wrong:

                              onCurrentIndexChanged: myMap.activeMapType = myMap.supportedMapTypes[currentIndex]
                              

                              Where is currentIndex obtained from? Have you tried replacing currentIndex with, say 1 just to test that the map type changes?

                              currentIndex is a property of groupbox, when in the groupbox you click and change the selected item it refreshes and it uses currentindex. I'm not an expert of QML but in debug mode it works and it works this way. In release mode it doesn't show possible maps type. Maybe do I have to put somewhere the api key?

                              Have you tried the qml map viewer example application - it'll show you the available map types for a given provider.

                              Yes I tried it, and sinceI added the third party library for google maps it shows me also googlemaps in the provider section. But same story, in debug it works, in release I can't even find it in provider.

                              1 Reply Last reply
                              0
                              • K Konstantin Tokarev

                                Right, it was fixed long time ago. Please use http://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/qtwebkit/ and Qt 5.10

                                D Offline
                                D Offline
                                davidesalvetti
                                wrote on last edited by
                                #18

                                @Konstantin-Tokarev Ok thanks, but which one should I download? From what I can see for MingGw si only available with windows 7. Does it work also with windows 10?

                                K D 2 Replies Last reply
                                0
                                • D davidesalvetti

                                  @Konstantin-Tokarev Ok thanks, but which one should I download? From what I can see for MingGw si only available with windows 7. Does it work also with windows 10?

                                  K Offline
                                  K Offline
                                  Konstantin Tokarev
                                  wrote on last edited by
                                  #19

                                  @davidesalvetti Sure, "Windows 7" means only that it was built on Windows 7 machine (same as official Qt binaries)

                                  1 Reply Last reply
                                  0
                                  • D davidesalvetti

                                    @Konstantin-Tokarev Ok thanks, but which one should I download? From what I can see for MingGw si only available with windows 7. Does it work also with windows 10?

                                    D Offline
                                    D Offline
                                    davidesalvetti
                                    wrote on last edited by
                                    #20

                                    For the answer to this question https://forum.qt.io/topic/90126/problem-with-qml-and-google-maps-plugin/3

                                    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