<?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[Access exported property]]></title><description><![CDATA[<p dir="auto">Access exported property<br />
I am making an app for mobile devices with Qt 5.8 on OS X 10. Starting with a Qt Quick wizard template, using SwipeView, I for instance want changes to have been made also in a textField2 on Page2 when I click a button1 on Page1. In design mode I have exported button1 and thus have "property alias button1: button 1" in Page1Form.ui.qml. In Page2.qml I have "Page1Form.button1.onClicked: {textField2 = ...}", which is formally accepted, but does not work.<br />
I have searched all Qt documentation and forums without success. The closest idea I have seen is to use the model "attachedObjects: [ Page1Form {id: page1Form} ]" in Page2.qml, but I can't get that accepted.<br />
How should I do?</p>
]]></description><link>https://forum.qt.io/topic/76817/access-exported-property</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 16:10:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/76817.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Mar 2017 07:47:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Access exported property on Mon, 06 Mar 2017 06:54:56 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for a good explanation and suggestion! Using the concept you suggest still seems to be clumsy -- it doesn't work without declaration of further properties in both directions. I will try to use model/view concepts instead (<a href="http://doc.qt.io/qt-5/modelview.html" target="_blank" rel="noopener noreferrer nofollow ugc">doc.qt.io/qt-5/modelview.html</a>).</p>
]]></description><link>https://forum.qt.io/post/380025</link><guid isPermaLink="true">https://forum.qt.io/post/380025</guid><dc:creator><![CDATA[PA F]]></dc:creator><pubDate>Mon, 06 Mar 2017 06:54:56 GMT</pubDate></item><item><title><![CDATA[Reply to Access exported property on Fri, 03 Mar 2017 12:46:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pa-f">@<bdi>PA-F</bdi></a> You can try to bind textField2's text directly to some text property of another item. If you have textField1 in Page1, make alias for the textField1 and bind textField2.text: textField1.text.</p>
<p dir="auto">The problem with your code may be that you bind button1.onClicked twice and the binding in Page1 replaces the binding in Page2 (if you have button1.onClicked in Page1, too).</p>
]]></description><link>https://forum.qt.io/post/379642</link><guid isPermaLink="true">https://forum.qt.io/post/379642</guid><dc:creator><![CDATA[Eeli K]]></dc:creator><pubDate>Fri, 03 Mar 2017 12:46:44 GMT</pubDate></item></channel></rss>