<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[display loading while for loop is working in qml]]></title><description><![CDATA[<p dir="auto">hi this is my code and i want to display a busyindicator<br />
but it doesn't work</p>
<pre><code> onClicked:
{       
myBusyIndicator.running= true         
      my for loop here // may take about 5 seconds
      {
      }

myBusyIndicator.running= false
}
</code></pre>
<p dir="auto">can i use Loader?<br />
how?</p>
<p dir="auto">thanks in advance<br />
(●'◡'●)</p>
]]></description><link>https://forum.qt.io/topic/134277/display-loading-while-for-loop-is-working-in-qml</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 20:39:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/134277.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Feb 2022 16:47:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to display loading while for loop is working in qml on Sat, 12 Feb 2022 21:06:37 GMT]]></title><description><![CDATA[<p dir="auto">You probably need to give the event loop some time. Run your loop via a signal or via <code>Qt.callLater()</code>. This will give the even loop a chance to update QML before the loop starts.</p>
]]></description><link>https://forum.qt.io/post/702339</link><guid isPermaLink="true">https://forum.qt.io/post/702339</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Sat, 12 Feb 2022 21:06:37 GMT</pubDate></item></channel></rss>