<?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 Re: Is there a signal for when a layer is finished loading? in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217588#M1090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That error is a known issue. It won't hurt anything and we are looking into a way to suppress it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if you could do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;FeatureLayer &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; sprayingFeatureLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureTable&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; localGDB&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geodatabaseFeatureTablesByTableName&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SprayingLog"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; visible&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; loadStatus &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LoadStatusLoaded &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; activeMode &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Spraying"&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:38:27 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2021-12-11T10:38:27Z</dc:date>
    <item>
      <title>//</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217581#M1083</link>
      <description />
      <pubDate>Wed, 26 May 2021 00:50:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217581#M1083</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2021-05-26T00:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a signal for when a layer is finished loading?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217582#M1084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a few thoughts. First is that the FeatureLayer is Loadable, just like how Geodatabase is Loadable. So you can connect to the loadStatusChanged signal and wait for the loadStatus to be completed. My other thought is that you should be able to set the visibility of a layer before or after it loaded, and it should persist. Is that not what you are seeing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side note -&amp;nbsp;you can see in the detailed description that it implements the Loadable interface -&amp;nbsp;&lt;A class="link-titled" href="http://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-featurelayer.html" title="http://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-featurelayer.html"&gt;FeatureLayer QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the Loadable documentation has a list of all classes that implement it (and therefore have the loadStatusChanged signal) -&amp;nbsp;&lt;A class="link-titled" href="http://developersdev.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-loadable.html" title="http://developersdev.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-loadable.html"&gt;http://developersdev.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-loadable.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 17:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217582#M1084</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-05-05T17:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a signal for when a layer is finished loading?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217583#M1085</link>
      <description>&lt;P&gt;//&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 00:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217583#M1085</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2021-05-26T00:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a signal for when a layer is finished loading?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217584#M1086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can connect to it any time after is instantiated, but before it becomes the load process. It will load either if you explicitly call load(), or if you add it to a map, which will implicitly start the load cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to test out the visibility issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 18:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217584#M1086</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-05-05T18:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a signal for when a layer is finished loading?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217586#M1088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you by chance do this declaratively instead of in JavaScript code? Our sample gives an example of how you can declaratively add a local feature table from a Geodatabase by table name. You can also do it by index if that is easier -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/sample-code/sample-qt-featurelayergeodatabase.htm" title="https://developers.arcgis.com/qt/latest/qml/sample-code/sample-qt-featurelayergeodatabase.htm"&gt;Feature layer (geodatabase)—ArcGIS Runtime SDK for Qt | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue with the above code is that a bunch of variables are getting created in the scope of that function, and as soon as the function returns, they all go out of scope. Doing it declaratively would eliminate&amp;nbsp;that issue. If you end up needing to create it in JS code like what you have, then you need to add these layers to some top level global object that will persist even when the the function returns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 19:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217586#M1088</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-05-05T19:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a signal for when a layer is finished loading?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217587#M1089</link>
      <description>&lt;P&gt;//&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 00:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217587#M1089</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2021-05-26T00:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a signal for when a layer is finished loading?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217588#M1090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That error is a known issue. It won't hurt anything and we are looking into a way to suppress it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if you could do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;FeatureLayer &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; sprayingFeatureLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureTable&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; localGDB&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geodatabaseFeatureTablesByTableName&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SprayingLog"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; visible&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; loadStatus &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LoadStatusLoaded &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; activeMode &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Spraying"&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217588#M1090</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-12-11T10:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a signal for when a layer is finished loading?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217589#M1091</link>
      <description>&lt;P&gt;//&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 00:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217589#M1091</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2021-05-26T00:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a signal for when a layer is finished loading?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217590#M1092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. QML works best when you try and think about how you can do it declaratively versus in JS code. Your code will look nicer, performance will be better, and chances for bugs will probably be less.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 22:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/217590#M1092</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-05-05T22:33:41Z</dc:date>
    </item>
  </channel>
</rss>

