Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt5.6: added new keyboard plugin

    Mobile and Embedded
    2
    4
    663
    Loading More Posts
    • 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
      debian last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • D
          debian last edited by

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

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post