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. Textfield loses focus (hides the VKB) when pressed
Forum Updated to NodeBB v4.3 + New Features

Textfield loses focus (hides the VKB) when pressed

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 1 Posters 754 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.
  • L Offline
    L Offline
    literA2
    wrote on last edited by A Former User
    #1

    Hi,

    I have a question why the VKB hides (when press) and shows up when released on the textfield to change the cursor position.

    I can't find any signal or property to maintain its focus once clicking on it so that the VKB never hides.

    Please advice. TIA.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      literA2
      wrote on last edited by
      #2

      Hi bumping this thread.

      I have this code.

       TextInput {
          id: textInput
          MouseArea { 
            onClicked: { textInput.forceActiveFocus(); }
          }
       }
      

      Once i pressed on the text input, the vkb hides and shows up upon released.

      I wanted not to hide the vkb since the textInput is still active.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        literA2
        wrote on last edited by
        #3

        Did someone experienced this also? Please advise. Thanks.

        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