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: inputredundant? -
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
inputelement to the outside - components which useTLineEditV2.