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. IR remote controller support of embedded Qt

IR remote controller support of embedded Qt

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 4 Posters 4.1k 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.
  • J Offline
    J Offline
    jack_liu
    wrote on last edited by
    #1

    Hi all:
    So far as I've known, embedded Qt doesn't support IR remote controller, so how
    can my GUI response a IR remote controller? After studying, I've following candidate
    methods:

    1. Following Qt's event-handling infrastructure which, say mouse, uses QMouseDriverFactory/
      QMouseDriverPlugin/QxxMouseHandler family to load driver and QEventLoop::processEvents()
      in server application's main() to monitor corresponding event device file, I should write
      my own factory/plugin/handler family for IR from the beginning(I say from the beginning because
      it doesn't seem to have any class I can inherit), even relative mechanisms to send
      a new kind of event class about IR, say QIREvent.
      The defect is that Qt must be rebuilt.
    2. Treat IR like keyboard, so only the plugin driver, like QxxMouseHandler mentioned above, needs
      to be implemented and added to QKbdDriverFactory. The plugin driver's major job is to map IR
      keys to some standard keyboard keys, and the rest is Qt's business. And GUI also needs to know the
      key mapping rule to response correctly.
      The defect is that there's problem when GUI also uses keyboard as input.
      Do you have any better idea?
    1 Reply Last reply
    0
    • J Offline
      J Offline
      jack_liu
      wrote on last edited by
      #2

      Hi all:
      So far as I've known, embedded Qt doesn't support IR remote controller, so how can my GUI response a IR remote controller? After studying, I've following candidate methods:

      1. Following Qt's event-handling infrastructure which, say mouse, uses QMouseDriverFactory/QMouseDriverPlugin/QxxMouseHandler family to load driver and QEventLoop::processEvents() in server application's main() to monitor corresponding event device file, I should write my own factory/plugin/handler family for IR from the beginning(I say from the beginning because it doesn't seem to have any class I can inherit), and even relative mechanisms to send a new kind of event class about IR, say QIREvent.The defect is that Qt must be rebuilt.

      2. Treat IR like keyboard, so only the plugin driver, like QxxMouseHandler mentioned above, needs to be implemented and added to QKbdDriverFactory. The plugin driver's major job is to map IR keys to some standard keyboard keys. And GUI also needs to know the key mapping rule to response correctly. The defect is that there's problem when GUI also uses keyboard as input.

      Do you have any better idea?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        I have merged your two topics into one. Please don't double post.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on last edited by
          #4

          Why not just implement a custom event that is send to the appropriate objects?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            saradavid16
            wrote on last edited by
            #5

            I am working with DM365 board IR Remote control key mapping with Qt Key event. I could not achieve as a generic Keyboard event for all my screen using sending custom event. Could you please any one suggest me to achieve as a generic key event for whole application?

            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