Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if keyboard and mouse are available with Qt

Is it possible to check if a keyboard and a mouse are connected to the system with Qt or any other C++ alternative? in windows

like image 324
Alireza Soori Avatar asked Jul 15 '13 15:07

Alireza Soori


1 Answers

I think Qt in embedded Linux can detect the plug and unplug of an USB Mouse and enable it when USB mouse is plugged in.

you can refer following links http://qt-project.org/doc/qt-4.8/qkbddriverplugin.html#details

http://qt-project.org/doc/qt-4.8/qmousedriverplugin.html#details

http://qt-project.org/doc/qt-4.8/qwsmousehandler.html

like image 116
snehal Avatar answered Sep 22 '22 06:09

snehal