Access and alias problem
-
wrote on 9 Feb 2021, 11:03 last edited by
Hi,
Isn't the code TLineEditV2.qml incorrect? How to access
text
(property alias text: input.text) from main.qml while it's not in the scope ofFocusScope { but its child Rectangle? Also, isn'tproperty alias input: input
redundant? -
It is correct, yes.
How to access text (property alias text: input.text) from main.qml while it's not in the scope ofFocusScope { but its child Rectangle?
Make another alias property in that
Rectangle
.Also, isn't property alias input: input redundant?
No, it exposes the
input
element to the outside - components which useTLineEditV2
.
1/2