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. How to add latitude to the coordinate?
Qt 6.11 is out! See what's new in the release blog

How to add latitude to the coordinate?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 1 Posters 398 Views
  • 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.
  • M Offline
    M Offline
    Mikeeeeee
    wrote on last edited by
    #1

    Hi!
    How to add latitude to the coordinate?
    I get the coordinate like this:

    visibleRegion.boundingGeoRectangle().topLeft
    

    How to add to coordinate

    visibleRegion.boundingGeoRectangle().width / 100
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mikeeeeee
      wrote on last edited by
      #2

      it is not work

                      a = visibleRegion.boundingGeoRectangle().topLeft
                      a.setLatitude(a.latitude + visibleRegion.boundingGeoRectangle().width )
      
      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mikeeeeee
        wrote on last edited by
        #3

        it is work:

                        console.log("широта     :" + visibleRegion.boundingGeoRectangle().topLeft.latitude)
                        var a = visibleRegion.boundingGeoRectangle().topLeft
                        a.latitude = 56
        
                        console.log("широта + 1 :" + a)
        
        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