Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
working with TextInput{}
-
I was browsing the docs on
TextInput{}
and I am a bit confused by something. There seems to me to be a clickable area but there is noonClicked
property. I would like to setup theTextInput{}
s/t when a user clicks inside the box, instead of placing the cursor, it highlights the whole string. Is that possible?
-
TextInput { ... onActiveFocusChanged: { if (activeFocus) { selectAll(); } } }
-
Perfect, thank you.