How to use the QtVirtualKeyboard with QWidget



  • i am cross compile the Qt5.9.3 to my AM3358 board last week, now the Qt5.9.3 are work well on my AM3358 board.
    the qtvirtualkeyboard/examples/virtualkeyboard/basic is work well, but it is a qml application.
    i am create a QWidget application with QLineEdit, it work well on my Ubuntu, the virtual keyboard can show up after i am click the QLineEdit.
    but the virtual keyboard can not show up on my AM3358 board.

    have any suggest to use the QtVirtualKeyboard with QWidget?
    thanks.



  • Hi @RunThiner

    Maybe i am wrong but AFAIK QtVirtualKeyboard is only available with QML& qt quick

    But there is a lot of alternatives:

    For example , i am working on a QWidget project , and i am using Maliit opensource virtual keyboard, with Qt4 ,

    Or maybe you can even create your own Input method virtual keyboard

    For me i advise you to build maliit opensource project for your target

    I hope this can help!



  • hi, mostefa,
    i am watch some word on the QT documets as below:
    "The input framework makes it easy to write custom input methods or to integrate 3rd party input engines. The input methods can be implemented in C++ or QML."

    i think the qt virtual keyboard can work on the QWidget, also, i am test the qt virtual keyboard with QWidget only on my ubuntu, it is work well.

    anyway, i am download the Maliit, thank you very much.



  • @RunThiner said in How to use the QtVirtualKeyboard with QWidget:

    "The input framework makes it easy to write custom input methods or to integrate 3rd party input engines. The input methods can be implemented in C++ or QML."

    The input framework is not Qt VirtualKeyboard, the input framework is the used technique behind the Qt VirtualKeyboard.

    Have a look at this introduction

    Detailed Description

    The QInputMethod class provides access to the active text input method.

    QInputMethod is used by the text editors for integrating to the platform text input methods and more commonly by application views for querying various text input method-related information like virtual keyboard visibility and keyboard dimensions.



  • thank you, mostefa,
    so the QtVirtualkeyboard are QML plugins, right?
    but why my application work well with QtVirtualkeyboard on Ubuntu 16.04, it is a QWidget application without QML.


Log in to reply
 

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