Unsolved Access and alias problem
-
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
.