简体   繁体   English

QML需要鼠标单击但不进行触摸事件

[英]qml takes mouse click but not taking touch events

I have a Qwidget inside of which, I have multiple children in the form of QmlApplicationViewer objects, each pointing to a different qml file. 我里面有一个Qwidget,我有多个以QmlApplicationViewer对象形式的QmlApplicationViewer对象,每个QmlApplicationViewer对象指向一个不同的QmlApplicationViewer文件。

Problem is, when I use mouse, all the qml files take events, but when I try to use the touch screen, only some of them does. 问题是,当我使用鼠标时,所有qml文件都会发生事件,但是当我尝试使用触摸屏时,只有其中一些会发生事件。

Can someone give a direction as to where the problem might be ? 有人可以对问题可能出在哪里给出指示吗? Will appreciate and sort of possible causes which might cause this issue. 将不胜感激,并可能引起此问题的各种可能原因。

Platform : Ubuntu 12.04 - Qt 4.8 - 32 bit 平台:Ubuntu 12.04-Qt 4.8-32 bit

There really is not enough information here to even begin to answer this question. 实际上,这里没有足够的信息甚至无法开始回答这个问题。 The most obvious answer that comes to mind is some of your qml files are not correctly defining the TouchArea within the qml. 想到的最明显的答案是您的某些qml文件未正确定义qml中的T​​ouchArea。 If you want more help you need to post code. 如果您需要更多帮助,则需要发布代码。

I tried using the EG-Touch touch drivers for my platform, which are supposed to have some issues on 12.04(as per some forums). 我尝试在平台上使用EG-Touch触摸驱动程序,该驱动程序应该在12.04上存在一些问题(根据某些论坛)。 I reverted back to Ubuntu 11.04 and used the e-Galax touch drivers instead, and things are working fine now. 我回到了Ubuntu 11.04,改用了e-Galax触摸驱动程序,现在一切正常。

PS : If someone finds a working driver for 12.04 or any other work around, please update. PS:如果有人找到适用于12.04或其他解决方法的驱动程序,请进行更新。 I will accept a better answer. 我会接受一个更好的答案。 Closing this for now. 现在关闭它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM