[Development] Qt5 QML TouchPoint pressure always return -1, but QWidget tabletEvent works well

Leslie Zhai xiangzhai83 at gmail.com
Wed Jul 16 06:09:36 CEST 2014


Hi Qt developers,

In Qt5.3.1 qtdeclarative/examples/quick/touchinteraction,

There is MultiPointTouchArea and TouchPoint example, but TouchPoint 
touch1.pressure, it always print out -1

Why?! because Qt5 removed X11 and Xi relatived part? 
https://github.com/krre/AprilBrush-Desktop/blob/master/cpp/wacom/wacom_unix.cpp#L31

In Qt5.3.1 qtbase/examples/widgets/widgets/tablet,

QTabletEvent event->pressure() print out the value in the [0.0, 1.0] range.

So how to get the correct pressure value from MultiPointTouchArea and 
TouchPoint in QML? please someone give me some advice, thanks a lot!

-- 
Regards
Leslie Zhai <xiang.zhai at i-soft.com.cn>
a KDE developer




More information about the Development mailing list