以下成員源於類 QQuickItem 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(棄用)
void
|
grabMouse () |
(棄用)
void
|
grabTouchPoints (const QList<int> & ids ) |
(棄用)
void
|
ungrabMouse () |
(棄用)
void
|
ungrabTouchPoints () |
This function is deprecated. We strongly advise against using it in new code.
使用 QPointerEvent::setExclusiveGrabber ().
抓取鼠標輸入。
This item will receive all mouse events until ungrabMouse () is called. Usually this function should not be called, since accepting for example a mouse press event makes sure that the following events are delivered to the item. If an item wants to take over mouse events from the current receiver, it needs to call this function.
警告: This function should be used with caution.
This function is deprecated. We strongly advise against using it in new code.
使用 QPointerEvent::setExclusiveGrabber (). Grabs the touch points specified by ids .
These touch points will be owned by the item until they are released. Alternatively, the grab can be stolen by a filtering item like Flickable. Use setKeepTouchGrab () to prevent the grab from being stolen.
This function is deprecated. We strongly advise against using it in new code.
使用 QPointerEvent::setExclusiveGrabber ().
Releases the mouse grab following a call to grabMouse ().
Note that this function should only be called when the item wants to stop handling further events. There is no need to call this function after a release or cancel event since no future events will be received in any case. No move or release events will be delivered after this function was called.
This function is deprecated. We strongly advise against using it in new code.
Use QEventPoint::setExclusiveGrabber() instead. Ungrabs the touch points owned by this item.