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. QML WebView does not lose Keyboard Focus

QML WebView does not lose Keyboard Focus

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 3.2k 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
    cef.ramirez
    wrote on last edited by
    #1

    Hi,

    I'm developing a mobile application that hooks up to Facebook and to do that I have to present Facebook's login dialog. I have a Webview that loads the login page. When I click on the entry fields, the virtual keyboard rises and I am able to login successfully. However, after I set the webview focus to false and remove it from view, the keyboard doesn't hide itself and stays on the screen over the other elements.

    How do I unset the focus on the webview such that the keyboard will hide itself? Or is this due to keyboard being focused on an element inside the web page? Is there a method that will force the keyboard to hide itself?

    Cef

    1 Reply Last reply
    0
    • D Offline
      D Offline
      digitalsurgeon
      wrote on last edited by
      #2

      try setting focus to some other Item. May be that will help.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cef.ramirez
        wrote on last edited by
        #3

        I tried, but the keyboard still doesn't go away. I found out that you can manually hide the keyboard by performing a swipe down on it. However, it's not intuitive enough for the user to do that every time the keyboard appears.

        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