<?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 Check visibility of a feature in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/check-visibility-of-a-feature/m-p/1687464#M5541</link>
    <description>&lt;P&gt;Hello, I have a map application that has multiple tables with information representing a data file. The user is able to show/hide certain features for each file individually. On the back end I am using `FeatureLayer::setFeatureVisible()`&amp;nbsp; to change the visibility of specific features.&lt;/P&gt;&lt;P&gt;I am currently running into an issue where I have no way to check which features have been hidden. There is no matching getter function in the FeatureLayer class and the Feature class has no member for visibility either. Is there any way to check the visibility status of a specific Feature within a FeatureLayer? Is there a better way to toggle the visibility of a specific feature within a layer that can be checked?&lt;/P&gt;&lt;P&gt;The FeatureLayers I am using are loaded from FeatureTables and I need to check the visibility of them after querying the tables so I can set the map viewpoint to the extent of the visible features. I don't care whether the feature is currently being rendered or not in the MapView, just if it is set as visible in the FeatureLayer.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Feb 2026 20:56:43 GMT</pubDate>
    <dc:creator>MichaelReese</dc:creator>
    <dc:date>2026-02-27T20:56:43Z</dc:date>
    <item>
      <title>Check visibility of a feature</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/check-visibility-of-a-feature/m-p/1687464#M5541</link>
      <description>&lt;P&gt;Hello, I have a map application that has multiple tables with information representing a data file. The user is able to show/hide certain features for each file individually. On the back end I am using `FeatureLayer::setFeatureVisible()`&amp;nbsp; to change the visibility of specific features.&lt;/P&gt;&lt;P&gt;I am currently running into an issue where I have no way to check which features have been hidden. There is no matching getter function in the FeatureLayer class and the Feature class has no member for visibility either. Is there any way to check the visibility status of a specific Feature within a FeatureLayer? Is there a better way to toggle the visibility of a specific feature within a layer that can be checked?&lt;/P&gt;&lt;P&gt;The FeatureLayers I am using are loaded from FeatureTables and I need to check the visibility of them after querying the tables so I can set the map viewpoint to the extent of the visible features. I don't care whether the feature is currently being rendered or not in the MapView, just if it is set as visible in the FeatureLayer.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 20:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/check-visibility-of-a-feature/m-p/1687464#M5541</guid>
      <dc:creator>MichaelReese</dc:creator>
      <dc:date>2026-02-27T20:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check visibility of a feature</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/check-visibility-of-a-feature/m-p/1687508#M5542</link>
      <description>&lt;P&gt;You're correct, unfortunately there is no getter counterpart to setFeatureVisible() in the current SDK (200.8.1). The Feature class does not hold any visibility state either, and hidden features are not reflected in definitionExpression, so there is no way to query this from the SDK side.&lt;/P&gt;&lt;P&gt;The workaround most people end up using is tracking it yourself in app state. For example, you can keep a QSet&amp;lt;qint64&amp;gt; of hidden Object IDs and update it whenever you call the visibility methods. It is a bit of extra bookkeeping but it is reliable and straightforward.&lt;/P&gt;&lt;P&gt;One thing worth noting: if your visibility logic is rule-based (e.g. "hide all features where type == X"), you are better off using &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-featurelayer.html#setDefinitionExpression" target="_self"&gt;definitionExpression&lt;/A&gt; or &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-featurelayer.html#setDisplayFilterDefinition" target="_self"&gt;displayFilterDefinition&lt;/A&gt; for that, since those are queryable.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 23:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/check-visibility-of-a-feature/m-p/1687508#M5542</guid>
      <dc:creator>Minnakan19</dc:creator>
      <dc:date>2026-02-27T23:17:52Z</dc:date>
    </item>
  </channel>
</rss>

