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. Resize Scalebar on Zoomin or Zoom out
Qt 6.11 is out! See what's new in the release blog

Resize Scalebar on Zoomin or Zoom out

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 491 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.
  • S Offline
    S Offline
    sush123
    wrote on last edited by sush123
    #1

    I have a scale bar displayed in the ARCGIS map with QML and i need to resize this scale bar when ever i zoom in and zoom out.

    This is how i am setting scalebar in Mapview

        ScaleBar{                
            anchors.left: mapView.left
            anchors.bottom: mapView.bottom
            anchors.bottomMargin: 80
            anchors.margins: 10 * scaleFactor
            map:mapView
               }
    

    How can i resize scalebar just like it works in googlemaps.

    3e8b37af-9b1c-47e4-b617-f77a83906817-image.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sush123
      wrote on last edited by
      #2

      Got solution by setting map.scale to the width of scale bar

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved