Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEngineView not working with QVirtualKeyboard

QWebEngineView not working with QVirtualKeyboard

Scheduled Pinned Locked Moved Solved QtWebEngine
1 Posts 1 Posters 899 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.
  • P Offline
    P Offline
    Paso
    wrote on last edited by Paso
    #1

    Hey everyone,

    Im trying to use the Virtual Keyboard on a website, rendered within a QWebEngineView, but the keyboard does not pop up if I click into a text field. If I place a QLineEdit, next to the QWebEngineView and click into it, the Virtual Keyboard works as expected. Interestingly, if I clicked into the QLineEdit once, it starts also popping up, when clicking into the text field on the web page, but it still does not receive any key strokes. Somehow I can not belief, that the Virtual Keyboard is not working within QWebEngineView, since this seems a rather common use case to me.

    Did I miss something? Does someone else see this problem?

    To reproduce, any example using QWebEngineView can be used. The only modification necessary is to paste the following line, before QApplication(...) is created:

    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
    

    I'm working on Fedora 25 with Wayland.

    Thanks,
    Pascal

    --

    Update1:
    Some further debugging in QVirtualKeyboardunveiled, that PlatformInputContext::setFocusObject() is not being called for Widgets rendered within QWebContentView, but why?

    Update2:
    I don't really know why, but since I compiled QWebEngine myself, it works!

    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