Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Cannot get rid of TextArea focus when mouse clicks the main window
Forum Updated to NodeBB v4.3 + New Features

Cannot get rid of TextArea focus when mouse clicks the main window

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 121 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    c0ntrarian
    wrote on last edited by
    #1

    3569770a-4e28-4abc-aa3b-09075e8dc934-image.png

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved