How to VirtualKeyboard layout for an html input in QWebEngine?



  • I'm trying to show a specific virtualkeyboard layout based on the input field on an html page. I've got a date field that I have to set as <input type="text"> but I'd like to show a number keyboard layout instead.

    Is there a way to intercept the QEvent::RequestSoftwareInputPanel for QWebEngineView or QWebPage? Then maybe get the input element and show a specific layout.

    Or do I need to somehow the filter the layouts in the keyboard layout QML?


  • Moderators

    @Jon-roberts
    i think you get the number layout with <input type="number" /> element declaration


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.