Unable to get the keyboard and mouse pointer in QT application
I have successfully cross compiled QT-5.3.2 for my ARM board and then I have deploy all the QT libraries on to the board. Now I am trying to run the QT application after setting the environment variables like
I am also supplying the platform and plugin parameters as below:
qtapplication -platform linuxfb:fb=/dev/fb3 -plugin evdevmouse -plugin evdevkeyboard
but I don't see the mouse or keyboard.
On my bootlogs I can see both usb (keyboard and mouse) got detected but its QT application which doesn't detect keyboard and mouse.
What was the problem ?
I have the same problem, but my system is x86_64. I ran my app in my system (static kernel and initrd only, using all binaries from My Desktop system). In my notebook my app runs fine, but when running over my system, I can see neither mouse nor keyboard.
I'm trying my system over a virtual machine.
I can get events in /dev/input/event6 (to mouse) and /dev/input/event0 (to my keyboard). I tried this one using cat:
And moving the mouse I can see the events.
I tried redirect QT_DEBUG_PLUGINS to a log file, but the results is a binary file!
I did the same in my notebook and I can see the log correctly.
Since the app locks the screen, I can't back to console and this way is impossible to see anything generate by app.
Do you have some tip for me?
Sorry, I forgot to show my parameters.
I tried without pass device path, the last I tried as below:
ANd now, I tried some parameters more:
Unfortunately, I have no ideas for now.
To see what might be happening you should connect to your device through SSH and then start the application, this way you should be able to see if you have any error message.
Thank you to answer!
My system doesn't have a ssh, but you gave me a idea. I wrote a QTimer with a single shot to 5 seconds closing my application.
I did a redirect from stdout to file, but stdout isn't writing nothing.
Then I did a redirect from stderr to file and I saw the a structure from application loading the module correctly. I couldn't see errors in debuging mode. I wrote a shortcut to close my app with Ctrl+Q, but my keyboard is not working too.
I'm not sure, but the terminal could be the problem. I will see this one a bit more.
Thank you again!
I needed to add one more line in my parameters:
export QT_PLUGIN_PATH=/opt/qt/plugins along with
and it worked with out any error.