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 - Android PositionSource
Forum Updated to NodeBB v4.3 + New Features

Qt - Android PositionSource

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 555 Views 1 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.
  • Z Offline
    Z Offline
    Zondar
    wrote on last edited by
    #1

    Hi,

    I am trying to run simple program, which should display my actual position. It works, but it takes 20 seconds to update position. Is there a way to make it faster?

    @import QtQuick 2.3
    import QtQuick.Controls 1.2
    import QtPositioning 5.3

    ApplicationWindow {
    visible: true
    width: 640
    height: 480

    PositionSource {
        id: src
        updateInterval: 1200
        active: true
    
        onPositionChanged: {
            var coord = src.position.coordinate;
            console.log("Coordinate:", coord.longitude, coord.latitude);
            longitude.text = coord.longitude
            latitude.text = coord.latitude
        }
    }
    
    Timer {
        property int counter: 0
        running: true
        interval: 1000
        repeat: true
        onTriggered: {
            console.log(counter++)
        }
    }
    
    Text {
        id: longitude
    }
    
    Text {
        id: latitude
        anchors.top: longitude.bottom
    }
    

    }
    @

    Thanks in advance

    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