Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtLocation examples aren't running
Qt 6.11 is out! See what's new in the release blog

QtLocation examples aren't running

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 3 Posters 5.5k Views 2 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.
  • kshegunovK Offline
    kshegunovK Offline
    kshegunov
    Moderators
    wrote on last edited by
    #1

    Hi,
    I have built the Qt Location module and the examples provided therein, because I wanted to experiment a bit with what it provides. When I start the "Map Viewer" it doesn't work. The menus aren't active and I get the following errors on startup (and similar on menu click):

    file:///home/nye/Programming/C++/qt/5.7/qml/QtQuick/Controls/StackView.qml:858: TypeError: Property 'hasOwnProperty' of object QQuickItem(0x80d3a0) is not a function
    file:///home/nye/Programming/C++/qt/5.7/qml/QtQuick/Controls/Private/SourceProxy.qml:81: TypeError: Property 'hasOwnProperty' of object QQuickRectangle(0x8938e0) is not a function
    file:///home/nye/Programming/C++/qt/5.7/qml/QtQuick/Controls/Private/SourceProxy.qml:81: TypeError: Property 'hasOwnProperty' of object QQuickRectangle(0x8938e0) is not a function
    QGeoTileProviderOsm: Tileserver disabled at  QUrl("http://maps-redirect.qt.io/osm/5.6/satellite")
    

    Without pretending to know what exactly is the problem it does "look" like some kind of incompatibility inside the QtQuick module(s), but I'm at a loss what exactly is the problem. Any help would be greatly appreciated.

    PS.
    I'm trying on desktop linux if that matters.

    Kind regards.

    Read and abide by the Qt Code of Conduct

    raven-worxR 1 Reply Last reply
    0
    • kshegunovK kshegunov

      Hi,
      I have built the Qt Location module and the examples provided therein, because I wanted to experiment a bit with what it provides. When I start the "Map Viewer" it doesn't work. The menus aren't active and I get the following errors on startup (and similar on menu click):

      file:///home/nye/Programming/C++/qt/5.7/qml/QtQuick/Controls/StackView.qml:858: TypeError: Property 'hasOwnProperty' of object QQuickItem(0x80d3a0) is not a function
      file:///home/nye/Programming/C++/qt/5.7/qml/QtQuick/Controls/Private/SourceProxy.qml:81: TypeError: Property 'hasOwnProperty' of object QQuickRectangle(0x8938e0) is not a function
      file:///home/nye/Programming/C++/qt/5.7/qml/QtQuick/Controls/Private/SourceProxy.qml:81: TypeError: Property 'hasOwnProperty' of object QQuickRectangle(0x8938e0) is not a function
      QGeoTileProviderOsm: Tileserver disabled at  QUrl("http://maps-redirect.qt.io/osm/5.6/satellite")
      

      Without pretending to know what exactly is the problem it does "look" like some kind of incompatibility inside the QtQuick module(s), but I'm at a loss what exactly is the problem. Any help would be greatly appreciated.

      PS.
      I'm trying on desktop linux if that matters.

      Kind regards.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @kshegunov
      are you sure you compiled against the correct Qt version? And the correct plugins are loaded (QTDIR, etc)?

      Regarding the tile server warning see QTBUG-55393
      The OSM support has been disabled, since they discontinued the tile server service.

      --- 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

      kshegunovK 1 Reply Last reply
      2
      • raven-worxR raven-worx

        @kshegunov
        are you sure you compiled against the correct Qt version? And the correct plugins are loaded (QTDIR, etc)?

        Regarding the tile server warning see QTBUG-55393
        The OSM support has been disabled, since they discontinued the tile server service.

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by kshegunov
        #3

        @raven-worx said in QtLocation examples aren't running:

        are you sure you compiled against the correct Qt version?

        Well, yes, the examples came from that same Qt distro. I copied the example project folder, ran the qmake it came with and started the app. If there's something I'm missing, please, do tell.

        And the correct plugins are loaded (QTDIR, etc)?

        As far as I can tell. I don't get any warnings in the output pane (besides the above).

        Regarding the tile server warning see QTBUG-55393

        Okay, that's not really bothering me so much, it's the QML errors I'm worried about.

        Read and abide by the Qt Code of Conduct

        kshegunovK 1 Reply Last reply
        0
        • kshegunovK kshegunov

          @raven-worx said in QtLocation examples aren't running:

          are you sure you compiled against the correct Qt version?

          Well, yes, the examples came from that same Qt distro. I copied the example project folder, ran the qmake it came with and started the app. If there's something I'm missing, please, do tell.

          And the correct plugins are loaded (QTDIR, etc)?

          As far as I can tell. I don't get any warnings in the output pane (besides the above).

          Regarding the tile server warning see QTBUG-55393

          Okay, that's not really bothering me so much, it's the QML errors I'm worried about.

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          From what I can tell the example in question hasn't been brought up to date. I've tried fixing it unsuccessfully. The minimal map example on the other hand works perfectly fine, so I'll base my work on that. @raven-worx, thanks for input.

          Kind regards.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          1
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Just tried it with pre-built Qt 5.7.0 and MSVC 2015. Besides the problem with the no longer functioning tile server I get no errors.

            kshegunovK 1 Reply Last reply
            1
            • ? A Former User

              Just tried it with pre-built Qt 5.7.0 and MSVC 2015. Besides the problem with the no longer functioning tile server I get no errors.

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by kshegunov
              #6

              That's mighty strange. I'm running 5.7.1 though.

              Read and abide by the 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