<?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[Data transfer between item?]]></title><description><![CDATA[<p dir="auto">Page1.qml</p>
<p dir="auto">I have four textfields in page1 consists of name , age, DOB etc. The textfield are defined in inside the item. The page are loaded in using loader.</p>
<p dir="auto">Page2.qml</p>
<p dir="auto">i have four textfield like degree, course, coll, etc.The textfield are defined in inside the item. The page are loaded in using loader.</p>
<p dir="auto">page3 .qml</p>
<p dir="auto">I want to display the page1 and page2 entered text in page3 in list view. How can i acess the textfield entered data only in page3.</p>
]]></description><link>https://forum.qt.io/topic/72922/data-transfer-between-item</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 17:01:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/72922.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Nov 2016 06:36:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Data transfer between item? on Thu, 03 Nov 2016 13:12:35 GMT]]></title><description><![CDATA[<p dir="auto">I would recommend to try separating the entered text (data) from the components that display them (textfields in pages 1/2 or plain text in page 3).</p>
<p dir="auto">As a first simple approach to achieve that, you can for example add properties for the data to your main.qml:</p>
<pre><code>Rectangle {
  id: main

  // myData property will be available in all sub-items of main
  property alias myData: dataItem 

  Item {
    id: dataItem
    property string name: ""
    property string course: ""
    // ... other data properties
  }
}
</code></pre>
<p dir="auto">In your pages, you can then access the values using e.g. <em><a href="http://myData.name" target="_blank" rel="noopener noreferrer nofollow ugc">myData.name</a></em> or <em>myData.course</em>.<br />
Just display the value in the third page, and make sure to save the value to these properties in the pages where you enter the data.</p>
<p dir="auto">This setup also ensures that you do not lose the data when pages are destroyed after you  e.g. remove them from the StackView.</p>
<p dir="auto">Cheers,<br />
GT</p>
]]></description><link>https://forum.qt.io/post/357790</link><guid isPermaLink="true">https://forum.qt.io/post/357790</guid><dc:creator><![CDATA[GTDev]]></dc:creator><pubDate>Thu, 03 Nov 2016 13:12:35 GMT</pubDate></item><item><title><![CDATA[Reply to Data transfer between item? on Wed, 02 Nov 2016 13:24:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/pradeep-kumar">@<bdi>Pradeep-Kumar</bdi></a></p>
<p dir="auto">I will explain my concept clearly</p>
<p dir="auto">Here i have three qml files. The first.qml and second.qml have some textfields.</p>
<p dir="auto">first.qml</p>
<p dir="auto">item{</p>
<p dir="auto">name textfield<br />
age textfield<br />
DOB textfield</p>
<p dir="auto">}</p>
<p dir="auto">second.qml</p>
<p dir="auto">Item{</p>
<p dir="auto">college textfield<br />
course textfield<br />
dept textfield</p>
<p dir="auto">}</p>
<p dir="auto">third.qml<br />
{</p>
<p dir="auto">display the enter textfield value in any form.<br />
}</p>
<p dir="auto">main.qml</p>
<p dir="auto">rectangle{</p>
<p dir="auto">Inside the rectangle the load the first , second and third qml pages using stack view.</p>
<p dir="auto">}<br />
the two buttons next and back button appear in every page to switch qml views.</p>
<p dir="auto">If i move to third page, the all entered text field text will appear in any view. If i switching the pages, the enter data will be retain in textfield.</p>
<p dir="auto">how can i do it?</p>
]]></description><link>https://forum.qt.io/post/357566</link><guid isPermaLink="true">https://forum.qt.io/post/357566</guid><dc:creator><![CDATA[eswar]]></dc:creator><pubDate>Wed, 02 Nov 2016 13:24:17 GMT</pubDate></item><item><title><![CDATA[Reply to Data transfer between item? on Wed, 02 Nov 2016 12:03:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/eswar">@<bdi>eswar</bdi></a></p>
<p dir="auto"><a href="https://forum.qt.io/topic/72890/textinput-value-retain-in-qml">https://forum.qt.io/topic/72890/textinput-value-retain-in-qml</a></p>
<p dir="auto">continuation of other thread topic,</p>
<p dir="auto">You can use one property in <strong>Second.qml</strong></p>
<pre><code>property alias adminInfo: text.text

Rectangle
{

    id:textInfo
    width: 150
    height: 50
    color: "skyblue"
    anchors.top: backButton.bottom
    Text {
        id: text
        font.bold: true
        font.pixelSize: 14
        anchors.centerIn: textInfo
    }
}
</code></pre>
<p dir="auto">And in <strong>main.qml</strong></p>
<pre><code>    MouseArea
    {
        anchors.fill: submitButton
        onClicked: {
            secondPage.visible = true
            subWindowObject.visible = false
            secondPage.adminInfo = textInputObject.text
        }
    }
</code></pre>
<p dir="auto">Where u are sending the value from one main.qml file to another Second.qml file.</p>
<p dir="auto">Hope this works,</p>
<p dir="auto">Thanks,</p>
]]></description><link>https://forum.qt.io/post/357550</link><guid isPermaLink="true">https://forum.qt.io/post/357550</guid><dc:creator><![CDATA[Pradeep Kumar]]></dc:creator><pubDate>Wed, 02 Nov 2016 12:03:45 GMT</pubDate></item><item><title><![CDATA[Reply to Data transfer between item? on Wed, 02 Nov 2016 11:12:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tirupathi-korla">@<bdi>Tirupathi-Korla</bdi></a></p>
<p dir="auto">Thank you for your comments.</p>
<p dir="auto">I need to pass the textfield text only from one qml to other. I enter the age, name , DOB entered textfield data in page1 will be displayed in page3.qml. I need to transfer textfield enter data only in  one qml to other qml.</p>
]]></description><link>https://forum.qt.io/post/357539</link><guid isPermaLink="true">https://forum.qt.io/post/357539</guid><dc:creator><![CDATA[eswar]]></dc:creator><pubDate>Wed, 02 Nov 2016 11:12:34 GMT</pubDate></item><item><title><![CDATA[Reply to Data transfer between item? on Wed, 02 Nov 2016 07:03:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
You can use the created files as items without using loader. If you want to use loader, this may help you<br />
<a href="http://doc.qt.io/qt-4.8/qml-loader.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-4.8/qml-loader.html</a>. Check "Receiving signals from loaded items".</p>
]]></description><link>https://forum.qt.io/post/357474</link><guid isPermaLink="true">https://forum.qt.io/post/357474</guid><dc:creator><![CDATA[Tirupathi Korla]]></dc:creator><pubDate>Wed, 02 Nov 2016 07:03:24 GMT</pubDate></item></channel></rss>