<?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[How do those crazy Q Macros work?]]></title><description><![CDATA[<p dir="auto">Hello fellow Qt Devs,</p>
<p dir="auto">I do not quite understand how the so called "signal" can change value of a property(whatever hides behind that keyword) while there is no visible Object instance.<br />
And what is the "FINAL" custom type meant for in the Q_PROPERTY signature cause it doesn't change the result.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/0e2bf813-f10e-4f84-80a0-e671837a0601.png" alt="crazy_macros.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/165056/how-do-those-crazy-q-macros-work</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 12:17:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165056.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Sep 2026 14:56:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do those crazy Q Macros work? on Fri, 04 Sep 2026 02:52:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dspuz">@<bdi>DSpUz</bdi></a> said in <a href="/post/839954">How do those crazy Q Macros work?</a>:</p>
<blockquote>
<p dir="auto">there is no visible Object instance.</p>
</blockquote>
<p dir="auto">There IS an object instance! The singleton is an instance.</p>
<blockquote>
<p dir="auto">I do not quite understand how the so called "signal" can change value of a property</p>
</blockquote>
<p dir="auto">A NOTIFY signal tells the QML engine to discard the old (cached) property value and read it again.</p>
<p dir="auto">When your <code>Globals</code> singleton (instance) emits the <code>numberChanged</code> signal, the QML engine re-reads <code>Globals.number</code> and updates the <code>text</code>.</p>
]]></description><link>https://forum.qt.io/post/839967</link><guid isPermaLink="true">https://forum.qt.io/post/839967</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Fri, 04 Sep 2026 02:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to How do those crazy Q Macros work? on Thu, 03 Sep 2026 19:27:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You can find everything around Q_PROPERTY in <a href="https://doc.qt.io/qt-6/properties.html" target="_blank" rel="noopener noreferrer nofollow ugc">this chapter of the Qt documentation</a>.</p>
<p dir="auto"><code>FINAL</code> means that you cannot shadow this property in a subclass.</p>
]]></description><link>https://forum.qt.io/post/839958</link><guid isPermaLink="true">https://forum.qt.io/post/839958</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 03 Sep 2026 19:27:39 GMT</pubDate></item><item><title><![CDATA[Reply to How do those crazy Q Macros work? on Thu, 03 Sep 2026 15:09:38 GMT]]></title><description><![CDATA[<p dir="auto">Apparently the QML_SINGLETON macro the Singleton object is automatically created with default constructor when a QML Engine accesses it so thats why one can call its setters or whatever, at least it is said like that in the next video after the implementation</p>
]]></description><link>https://forum.qt.io/post/839955</link><guid isPermaLink="true">https://forum.qt.io/post/839955</guid><dc:creator><![CDATA[DSpUz]]></dc:creator><pubDate>Thu, 03 Sep 2026 15:09:38 GMT</pubDate></item></channel></rss>