Solved How to handle two Mouses on same device seperately?
-
I have Qt5.10, cross compiled for Raspberry Pi3
I have a QML based program where I capture the mouse wheel events and execute some functions!
I want to connect another mouse to my Raspberry Pi. So each Mouse will have a different function in my program!!
How to differentiate between this two mouse devices?
Can I get each Mouse ID for example and act accordingly?
-
Hi and welcome to devnet,
What backend are you currently using for your application ?
-
@sgaist What do you mean? My application(Qt based C++,) should run on Raspberry at the end!
-
So I know understand I can run
lsusb
command in Raspberry terminal to get the devices IDs, How can I do that through QT?
I mean to send the command and get feedback for the ID?
-
QProcess comes to mind for that.
-
@sgaist will it will be seen to the user? I don't want the user to see this !
-
Any Example?
-
this one is exactly what I need.
-
@mathias_va-0 said in How to handle two Mouses on same device seperately?:
this one is exactly what I need?
Is that a question ?
Note that the QProcess documentation already provides an example.
-
@sgaist no sorry it was answer