检查键盘和鼠标是否可用于Qt [英] Check if keyboard and mouse are available with Qt

查看:117
本文介绍了检查键盘和鼠标是否可用于Qt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以检查键盘和鼠标是否连接到具有Qt或任何其他C ++替代系统的系统? in windows

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

推荐答案

我认为嵌入式Linux中的Qt可以检测USB鼠标的插入和拔出,插入。

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.

您可以参考以下链接
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

这篇关于检查键盘和鼠标是否可用于Qt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆