<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Scalebar - Cannot change unitSystem in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/scalebar-cannot-change-unitsystem/m-p/1718347#M5553</link>
    <description>&lt;P&gt;I am using ArcGIS Runtime &amp;amp; Toolkit 200.7. I have the following code in a QML file:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;MapViewBackend {
        id: mapViewBackendId
        mapView: mapViewId
        Component.onCompleted: scalebarId.mapView = mapViewId
}

MapView {
        id: mapViewId

        Scalebar {
                id: scalebarId
                anchors.bottom: parent.attributionTop
                anchors.right: parent.left
                anchors.bottomMargin: 10
                anchors.rightMargin: 5
                unitSystem: Scalebar.UnitSystem.Imperial
        }
}&lt;/LI-CODE&gt;&lt;P&gt;The code compiles and displays a map with a scalebar, but the scalebar still displays units in metric. I have checked the value of the `unitSystem` attribute via print statements -- it is properly set to imperial, but the UI still only shows metric units. What do I need to change for this to work?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2026 17:10:37 GMT</pubDate>
    <dc:creator>Paige</dc:creator>
    <dc:date>2026-08-04T17:10:37Z</dc:date>
    <item>
      <title>Scalebar - Cannot change unitSystem</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/scalebar-cannot-change-unitsystem/m-p/1718347#M5553</link>
      <description>&lt;P&gt;I am using ArcGIS Runtime &amp;amp; Toolkit 200.7. I have the following code in a QML file:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;MapViewBackend {
        id: mapViewBackendId
        mapView: mapViewId
        Component.onCompleted: scalebarId.mapView = mapViewId
}

MapView {
        id: mapViewId

        Scalebar {
                id: scalebarId
                anchors.bottom: parent.attributionTop
                anchors.right: parent.left
                anchors.bottomMargin: 10
                anchors.rightMargin: 5
                unitSystem: Scalebar.UnitSystem.Imperial
        }
}&lt;/LI-CODE&gt;&lt;P&gt;The code compiles and displays a map with a scalebar, but the scalebar still displays units in metric. I have checked the value of the `unitSystem` attribute via print statements -- it is properly set to imperial, but the UI still only shows metric units. What do I need to change for this to work?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2026 17:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/scalebar-cannot-change-unitsystem/m-p/1718347#M5553</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2026-08-04T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scalebar - Cannot change unitSystem</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/scalebar-cannot-change-unitsystem/m-p/1718488#M5554</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/771033"&gt;@Paige&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the report. This is a bug in the toolkit, not your code. The value reaches the Scalebar but never makes it through to the part that picks the display units, so it stays metric no matter what you set.&lt;/P&gt;&lt;P&gt;It will be fixed on main for 300.1 and will be back ported to the lts.next branch (200.8). If you want it on 200.7 without upgrading, the diff is small enough to apply to your local toolkit copy:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-toolkit-qt/pull/834/changes" target="_blank"&gt;https://github.com/Esri/arcgis-maps-sdk-toolkit-qt/pull/834/changes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After that your snippet should work as written.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Minnakan&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2026 20:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/scalebar-cannot-change-unitsystem/m-p/1718488#M5554</guid>
      <dc:creator>Minnakan19</dc:creator>
      <dc:date>2026-08-04T20:33:18Z</dc:date>
    </item>
  </channel>
</rss>

