QWS 中的鼠标支持
我已经编译了 Qt4 嵌入式 SDK,以便在 BeagleBoard 上使用,并具有以下选项:
./configure
-embedded arm
-platform qws/linux-x86-g++
-xplatform qws/linux-TIarmv7-sgx-g++
-depths 16,24,32
-no-mmx
-no-3dnow
-no-sse
-no-sse2
-no-glib
-no-cups
-no-largefile
-no-accessibility
-no-openssl
-no-gtkstyle
-qt-mouse-pc
-qt-mouse-linuxtp
-qt-mouse-linuxinput
-plugin-mouse-linuxtp
-plugin-mouse-pc
-fast -opengl es2
-qt-gfx-transformed
-qt-gfx-vnc
-qt-gfx-linuxfb
-qt-gfx-multiscreen
-plugin-gfx-powervr
-D QT_QWS_CLIENTBLIT
-opensource
-confirm-license
-multimedia
-optimized-qmake
我已经使用此 SDK 创建了一个简单的 Hello World GUI 应用程序并成功编译。我已经在 BeagleBoard 上运行了我的应用程序:
./Hello World -mouse -qws
但我的鼠标不起作用。然后我尝试将 QWS_MOUSE_PROTO 设置为 Microsoft、IntelliMouse 和 MouseMan,如 Qt4 文档中所述,然后再运行我的应用程序,但它没有用。我在运行应用程序之前测试了我的鼠标,因此我确信我的鼠标可以正常工作。我在 Beagleboard 上使用 Angstrom。
谁能告诉我有什么问题吗?
I have compiled Qt4 embedded SDK for using on BeagleBoard with following options:
./configure
-embedded arm
-platform qws/linux-x86-g++
-xplatform qws/linux-TIarmv7-sgx-g++
-depths 16,24,32
-no-mmx
-no-3dnow
-no-sse
-no-sse2
-no-glib
-no-cups
-no-largefile
-no-accessibility
-no-openssl
-no-gtkstyle
-qt-mouse-pc
-qt-mouse-linuxtp
-qt-mouse-linuxinput
-plugin-mouse-linuxtp
-plugin-mouse-pc
-fast -opengl es2
-qt-gfx-transformed
-qt-gfx-vnc
-qt-gfx-linuxfb
-qt-gfx-multiscreen
-plugin-gfx-powervr
-D QT_QWS_CLIENTBLIT
-opensource
-confirm-license
-multimedia
-optimized-qmake
Than I have created a simple Hello World GUI application with this SDK and compiled successfully. And I have run my application on BeagleBoard:
./Hello World -mouse -qws
But my mouse did not work. Then I tried setting QWS_MOUSE_PROTO to Microsoft, IntelliMouse and MouseMan as mentioned in Qt4 docs before running my application but it did not work. I have tested my mouse before running my application so I am sure my mouse works. I am using Angstrom on my Beagleboard.
Can anybody tell me what is the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过使用
QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mice
?您使用什么输入驱动程序?也许是evdev?
Have you tried with
QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mice
?What input driver are you using?
evdev
perhaps?导出 QWS_KEYBOARD="LinuxInput:/dev/input/event0 LinuxInput:/dev/input/event1"
导出 QWS_MOUSE_PROTO="LinuxInput:/dev/input/event0 LinuxInput:/dev/input/event1"
export QWS_KEYBOARD="LinuxInput:/dev/input/event0 LinuxInput:/dev/input/event1"
export QWS_MOUSE_PROTO="LinuxInput:/dev/input/event0 LinuxInput:/dev/input/event1"