Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved MapPolyline slow repaint problem

    QML and Qt Quick
    1
    1
    234
    Loading More Posts
    • 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.
    • J
      jankes last edited by

      Hi. I'm creating navigation app. I'm drawing route that was already traveled with one color and route to travel with another one. I have problem that while navigation marker is moving fluently route is drawing with some delay. I'm updating polyline point on my navigation marker coordinate change:

         Connections {
                  enabled: navigation.running
                  target: naviArrowItem
      
                  onCoordinateChanged: {
                      routeBefore.replaceCoordinate(routeBefore.pathLength()-1,target.coordinate)
                      routeToGo.replaceCoordinate(0,target.coordinate)
                      RideSimulationModel.updateCoordinate(target.coordinate)
                  }
              }
      

      When replacing polyline with MapCircle there is no problem with latency (circle coordinate change is instant).
      Maybe somebody know how to deal with this issue?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post