Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qt5 Embedded Linux
Forum Updated to NodeBB v4.3 + New Features

Qt5 Embedded Linux

Scheduled Pinned Locked Moved QtonPi
5 Posts 2 Posters 5.8k Views 1 Watching
  • 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.
  • U Offline
    U Offline
    UAVChris
    wrote on last edited by
    #1

    Hi - another newbie!!!

    I've just about managed to get Qt setup for the Raspberry Pi. I can compile, deploy and run the hello-qtonpi example app on the RPi so happy days. I've tried several other Qt5 examples as well - most execute properly. I am unable to get a mouse to work on any of them though. Taking a guess, the lack of a mouse is to do with where the Qt SDK is listening for it, from what I've read so far mouse events should propogate through the SDK if the SDK is configured properly.

    So I have a question if anyone can help. How do I configure the qtonpi Qt5 SDK with a mouse, when I plug a mouse in the RPi does seem to detect it - but I have no idea how to tell Qt how to talk to it.

    I'm new to both linux and Qt so this may well be a stupid question!!

    I'm using:
    Ubunto 12.04 64 bit, Qt Creator 2.4.1 (I Couldnt get Qt Creator 2.5.0 to deploy to the Pi), Qt5.0 SDK and the standard qtonpi SD card image.

    Any guidance or pointers on what to read next would be much appreciated.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nvharisha
      wrote on last edited by
      #2

      I have implemented the EvDevMouse plugin.
      I was able to get the mouse working. But i was not able to see the mouse pointer.
      Movement / Click was taken by the app. I checked with Examples (Animation->Appchooser) and QtTestBrowser. Both have same issue.

      Hari

      1 Reply Last reply
      0
      • U Offline
        U Offline
        UAVChris
        wrote on last edited by
        #3

        Hi hari

        Looks like its to do with the QPA mouse driver plugin then.

        Do you think this is right:

        1. QPA server must be running - I think this must be or no graphics! (possibly not though because of the GPU hardware accelaration under Qt5.

        2. QPA linux mouse plugin must be loaded.

        Assume its the same for the keyboard driver too!

        I've tried starting the app with -plugin foo (linux mouse driver - forget the exact syntax) with no success.

        1 Reply Last reply
        0
        • U Offline
          U Offline
          UAVChris
          wrote on last edited by
          #4

          Mouse problem will be fixed in next release.

          https://codereview.qt-project.org/#change,23118

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nvharisha
            wrote on last edited by
            #5

            With exporting QT_DEBUG_PLUGIN=1, you can see if the plugin is found.
            if the "Key" word matches with what every you have passed for -plugin, then it should be initialized. If further to that if its not working, then probably you are not getting mouse events.

            Hari

            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