Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to use the QtVirtualKeyboard with QWidget

How to use the QtVirtualKeyboard with QWidget

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 4.9k 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.
  • R Offline
    R Offline
    RunThiner
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mostefa
      wrote on last edited by mostefa
      #2

      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!

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RunThiner
        wrote on last edited by
        #3

        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.

        M 1 Reply Last reply
        0
        • R RunThiner

          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.

          M Offline
          M Offline
          mostefa
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          1
          • R Offline
            R Offline
            RunThiner
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MarKus12
              wrote on last edited by
              #6

              Sorry to answer to this old topic.
              I spent days to make it work now, without success, because the Qt virtual keyboard documentation (https://doc.qt.io/qt-5/qtvirtualkeyboard-index.html) promises:

              Supports both Qt Quick and Qt Widgets applications.

              So why are they saying that, when there is no way/layer/instance to run a pure a "Qt Widgets application" with a qt virtual keyboard?

              Did it come to there mind that people eventually don't want to reinvent there c++ code to qml ?

              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