Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // -*- coding: utf-8-unix -*-
- import QtQuick 2.0
- import QtPositioning 5.2
- // A drop-in replacement for PositionSource.qml for testing.
- Item {
- id: gps
- property var direction: 0
- property var position: QtObject {
- property var coordinate: QtPositioning.coordinate(60.16807, 24.94155)
- }
- property bool ready: true
- Timer {
- interval: 3000
- repeat: true
- running: app.running
- // Plain reassignment seems to trigger onPositionChanged.
- onTriggered: gps.position = gps.position;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement