<?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 and alias problem]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Isn't the code <a href="https://qmlbook.github.io/ch04-qmlstart/qmlstart.html#focusscope" target="_blank" rel="noopener noreferrer nofollow ugc">TLineEditV2.qml</a> incorrect? How to access <code>text</code> (<em>property alias text: input.text</em>) from <em>main.qml</em> while it's not in the scope of<em>FocusScope {</em> but its child <em>Rectangle</em>? Also, isn't <code>property alias input: input</code> redundant?</p>
]]></description><link>https://forum.qt.io/topic/123624/access-and-alias-problem</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Nov 2026 18:55:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/123624.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Feb 2021 11:03:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Access and alias problem on Wed, 10 Feb 2021 06:40:57 GMT]]></title><description><![CDATA[<p dir="auto">It is correct, yes.</p>
<blockquote>
<p dir="auto">How to access text (property alias text: input.text) from main.qml while it's not in the scope ofFocusScope { but its child Rectangle?</p>
</blockquote>
<p dir="auto">Make another alias property in that <code>Rectangle</code>.</p>
<blockquote>
<p dir="auto">Also, isn't property alias input: input redundant?</p>
</blockquote>
<p dir="auto">No, it exposes the <code>input</code> element to the outside - components which use <code>TLineEditV2</code>.</p>
]]></description><link>https://forum.qt.io/post/643535</link><guid isPermaLink="true">https://forum.qt.io/post/643535</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 10 Feb 2021 06:40:57 GMT</pubDate></item></channel></rss>