<?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[Forwarding QML property to C++]]></title><description><![CDATA[<p dir="auto">A Little help here, I Intend using the "textDocument" property of the TextArea document in my C++ Code via QTextDocument.<br />
I obviously don't want to make calls to search and transverse my object tree via rootObjects().at(index) and findChild() methods as i find them a lot less flexible and twingy to the eye.<br />
Is there a cleaner and more flexible way to expose a QML Elements property to C++.<br />
PS: I don't infer that calling C++ from QML using ** registertype**. I mean using exposing QML element property(s) to C++</p>
]]></description><link>https://forum.qt.io/topic/70350/forwarding-qml-property-to-c</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 01:10:06 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/70350.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Aug 2016 11:42:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Forwarding QML property to C++ on Thu, 18 Aug 2016 13:33:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kshegunov">@<bdi>Kshegunov</bdi></a> Thanks</p>
]]></description><link>https://forum.qt.io/post/343005</link><guid isPermaLink="true">https://forum.qt.io/post/343005</guid><dc:creator><![CDATA[herlarbee]]></dc:creator><pubDate>Thu, 18 Aug 2016 13:33:22 GMT</pubDate></item><item><title><![CDATA[Reply to Forwarding QML property to C++ on Thu, 18 Aug 2016 13:23:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/herlarbee">@<bdi>herlarbee</bdi></a><br />
To add to <a class="plugin-mentions-user plugin-mentions-a" href="/user/vronin">@<bdi>VRonin</bdi></a>, I advise you to keep a reference to your object in a <code>QPointer</code>, because <a href="http://doc.qt.io/qt-5/qobject.html#findChild" target="_blank" rel="noopener noreferrer nofollow ugc">QObject::findChild</a> traverses the <code>QObject</code> tree recursively and may be rather slow.</p>
]]></description><link>https://forum.qt.io/post/343001</link><guid isPermaLink="true">https://forum.qt.io/post/343001</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Thu, 18 Aug 2016 13:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to Forwarding QML property to C++ on Thu, 18 Aug 2016 13:04:35 GMT]]></title><description><![CDATA[<p dir="auto">Thanks VRonin for the quick response.</p>
]]></description><link>https://forum.qt.io/post/342994</link><guid isPermaLink="true">https://forum.qt.io/post/342994</guid><dc:creator><![CDATA[herlarbee]]></dc:creator><pubDate>Thu, 18 Aug 2016 13:04:35 GMT</pubDate></item><item><title><![CDATA[Reply to Forwarding QML property to C++ on Thu, 18 Aug 2016 12:46:42 GMT]]></title><description><![CDATA[<p dir="auto">i'm afraid findchild is the way to go: <a href="http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html</a></p>
]]></description><link>https://forum.qt.io/post/342982</link><guid isPermaLink="true">https://forum.qt.io/post/342982</guid><dc:creator><![CDATA[VRonin]]></dc:creator><pubDate>Thu, 18 Aug 2016 12:46:42 GMT</pubDate></item></channel></rss>