Cannot get rid of TextArea focus when mouse clicks the main window
-
Hello, I am having an issue learning QT. I am trying to make the user enter a IP address into a TextInput QML type. But when the user clicks anywhere in the background, the keyboard should minimize and the TextInput should not be focused anymore.
The current behavior is when you click on the TextInput, the keyboard comes up, but if the mouse cursor is anywhere inside of the window, the keyboard stays up and I cannot make the TextInput lose focus. How do I do this in QML? Thank you.