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. Qt5.6: added new keyboard plugin
QtWS25 Last Chance

Qt5.6: added new keyboard plugin

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 885 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.
  • D Offline
    D Offline
    debian
    wrote on last edited by
    #1

    Hello!
    I build Qt 5.6.2 for Hisilicon hi3798mv100 SoC and application should get commands from infra-red remote control unit (RCU).
    Early we are use Qt-4.7.3 and I implement keyboard plugin for RCU, now I should port it to Qt5.
    At this moment I make simple variant - add code to src/platformsupport/input/evdevkeyboard/, but this code contained many ifdef blocks.
    What way is more correct for Qt5, how can I implement new keyboard type in Qt5?
    How can I load this plugin at application start?
    Thank you and excuse my bad english.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the looks of it you should rather implement your own input plugin and then add an entry in the generic folder to. Then you can set the QT_QPA_GENERIC_PLUGINS to load your newly created plugin.

      Hope it helps.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        debian
        wrote on last edited by
        #3

        @SGaist thank you for your reply!
        Unfortunately I not see answer on major question - how should I implement input plugin?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can take a look at the QLibInputKeyboard class to get started.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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