MouseEvent QML 类型

Provides information about a touch event. 更多...

导入语句: import QtQuick .
Since: Qt Quick Ultralite 1.0

特性

详细描述

The position of the touch can be found via the x and y 特性。

另请参阅 MouseArea .

特性文档编制

These properties hold the coordinates of the position supplied by the touch event.


accepted : bool

设置 accepted to true in response to a pressed signal prevents the touch event from being propagated to items below this item.

Generally, if the item acts on the touch event then it should be accepted so that items lower in the stacking order do not also respond to the same event.

默认情况下, accepted is true .


wasHeld : bool

This property is true if the press has been held longer than the threshold pressAndHoldInterval .