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. Virtual keyboard does not copy or show wengineview input text
Qt 6.11 is out! See what's new in the release blog

Virtual keyboard does not copy or show wengineview input text

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 1.3k 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.
  • V Offline
    V Offline
    vilvei
    wrote on last edited by
    #1

    What works: Virtual Keyboard in fullScreen mode enabled works with native qml TextInput as expected: it shows the text that was already in the field when input was focused and it shows the edited text.

    What does not work: When input field seen in webengineview is focused (input field in web page) the virtual keyboard input field text is empty, and does not update when inputting text.

    Question 1: Is this a bug, or is there a way to make it work?
    Question 2: Is there a way to make virtual keyboard to show the inputted text without going to fullScreen mode?
    This would be the best option in my opinion.

    Image to demonstrate the situation:
    0_1536933233902_vkeyb_problem.png

    Testing code:

    import QtQuick 2.11
    import QtQuick.Window 2.2
    import QtQuick.VirtualKeyboard 2.3
    import QtQuick.VirtualKeyboard.Settings 2.2
    import QtWebEngine 1.7
    
    Window {
        id: window
        visible: true
        width: 1280
        height: 768
        title: qsTr("Hello World")
    
        WebEngineView {
            id: webview
            anchors.fill: parent
            url: 'https://www.google.com'
        }
    
        Rectangle {
            height: 100
            width: window.width
            color: "#800000FF"
            TextInput {
                id: textfield
                anchors.fill: parent
                visible: true
                text: "Just some text"
                color: "white"
                font.pointSize: 50
            }
        }
    
        Component.onCompleted: {
            VirtualKeyboardSettings.fullScreenMode = true;
        }
    }
    
    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