QtLocation examples aren't running


  • Qt Champions 2016

    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.


  • Moderators

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


  • Qt Champions 2016

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


  • Qt Champions 2016

    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.


  • Moderators

    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.


  • Qt Champions 2016

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.