• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QTouchEvent

    下一话题

    QContextMenuEvent

    QTouchEvent.TouchPoint

    注意

    该类在 Qt4.6 引入

    概要

    函数

    详细描述

    TouchPoint class provides information about a touch point in a PySide.QtGui.QTouchEvent .
    class PySide.QtGui.QTouchEvent. TouchPoint ( other )
    class PySide.QtGui.QTouchEvent. TouchPoint ( [ id=-1 ] )
    参数:
    • other PySide.QtGui.QTouchEvent::TouchPoint
    • id PySide.QtCore.int

    构造 QTouchEvent.TouchPoint for use in a PySide.QtGui.QTouchEvent .

    PySide.QtGui.QTouchEvent.TouchPoint. id ( )
    返回类型: PySide.QtCore.int

    Returns the id number of this touch point.

    Id numbers are globally sequential, starting at zero, meaning the first touch point in the application has id 0, the second has id 1, and so on.

    PySide.QtGui.QTouchEvent.TouchPoint. isPrimary ( )
    返回类型: PySide.QtCore.bool

    Returns true if this touch point is the primary touch point. The primary touch point is the point for which the windowing system generates mouse events.

    PySide.QtGui.QTouchEvent.TouchPoint. lastNormalizedPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the normalized position of this touch point from the previous touch event.

    The coordinates are normalized to the size of the touch device, i.e. (0,0) is the top-left corner and (1,1) is the bottom-right corner.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos() PySide.QtGui.QTouchEvent::TouchPoint.startNormalizedPos()

    PySide.QtGui.QTouchEvent.TouchPoint. lastPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the position of this touch point from the previous touch event, relative to the widget or PySide.QtGui.QGraphicsItem that received the event.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.pos() PySide.QtGui.QTouchEvent::TouchPoint.startPos()

    PySide.QtGui.QTouchEvent.TouchPoint. lastScenePos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the scene position of this touch point from the previous touch event.

    The scene position is the position in PySide.QtGui.QGraphicsScene coordinates if the PySide.QtGui.QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.scenePos() PySide.QtGui.QTouchEvent::TouchPoint.startScenePos()

    PySide.QtGui.QTouchEvent.TouchPoint. lastScreenPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the screen position of this touch point from the previous touch event.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.screenPos() PySide.QtGui.QTouchEvent::TouchPoint.startScreenPos()

    PySide.QtGui.QTouchEvent.TouchPoint. normalizedPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the normalized position of this touch point.

    The coordinates are normalized to the size of the touch device, i.e. (0,0) is the top-left corner and (1,1) is the bottom-right corner.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.startNormalizedPos() PySide.QtGui.QTouchEvent::TouchPoint.lastNormalizedPos() PySide.QtGui.QTouchEvent::TouchPoint.pos()

    PySide.QtGui.QTouchEvent.TouchPoint. pos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the position of this touch point, relative to the widget or PySide.QtGui.QGraphicsItem that received the event.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.startPos() PySide.QtGui.QTouchEvent::TouchPoint.lastPos() PySide.QtGui.QTouchEvent::TouchPoint.screenPos() PySide.QtGui.QTouchEvent::TouchPoint.scenePos() PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos()

    PySide.QtGui.QTouchEvent.TouchPoint. pressure ( )
    返回类型: PySide.QtCore.qreal

    Returns the pressure of this touch point. The return value is in the range 0.0 to 1.0.

    PySide.QtGui.QTouchEvent.TouchPoint. rect ( )
    返回类型: PySide.QtCore.QRectF

    Returns the rect for this touch point, relative to the widget or PySide.QtGui.QGraphicsItem that received the event. The rect is centered around the point returned by PySide.QtGui.QTouchEvent::TouchPoint.pos() .

    注意

    This function returns an empty rect if the device does not report touch point sizes.

    PySide.QtGui.QTouchEvent.TouchPoint. scenePos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the scene position of this touch point.

    The scene position is the position in PySide.QtGui.QGraphicsScene coordinates if the PySide.QtGui.QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.startScenePos() PySide.QtGui.QTouchEvent::TouchPoint.lastScenePos() PySide.QtGui.QTouchEvent::TouchPoint.pos()

    PySide.QtGui.QTouchEvent.TouchPoint. sceneRect ( )
    返回类型: PySide.QtCore.QRectF

    Returns the rect for this touch point in scene coordinates.

    注意

    This function returns an empty rect if the device does not report touch point sizes.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.scenePos() PySide.QtGui.QTouchEvent::TouchPoint.rect()

    PySide.QtGui.QTouchEvent.TouchPoint. screenPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the screen position of this touch point.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.startScreenPos() PySide.QtGui.QTouchEvent::TouchPoint.lastScreenPos() PySide.QtGui.QTouchEvent::TouchPoint.pos()

    PySide.QtGui.QTouchEvent.TouchPoint. screenRect ( )
    返回类型: PySide.QtCore.QRectF

    Returns the rect for this touch point in screen coordinates.

    注意

    This function returns an empty rect if the device does not report touch point sizes.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.screenPos() PySide.QtGui.QTouchEvent::TouchPoint.rect()

    PySide.QtGui.QTouchEvent.TouchPoint. setId ( id )
    参数: id PySide.QtCore.int

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.id()

    PySide.QtGui.QTouchEvent.TouchPoint. setLastNormalizedPos ( lastNormalizedPos )
    参数: lastNormalizedPos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.lastNormalizedPos()

    PySide.QtGui.QTouchEvent.TouchPoint. setLastPos ( lastPos )
    参数: lastPos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.lastPos()

    PySide.QtGui.QTouchEvent.TouchPoint. setLastScenePos ( lastScenePos )
    参数: lastScenePos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.lastScenePos()

    PySide.QtGui.QTouchEvent.TouchPoint. setLastScreenPos ( lastScreenPos )
    参数: lastScreenPos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.lastScreenPos()

    PySide.QtGui.QTouchEvent.TouchPoint. setNormalizedPos ( normalizedPos )
    参数: normalizedPos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos()

    PySide.QtGui.QTouchEvent.TouchPoint. setPos ( pos )
    参数: pos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.pos()

    PySide.QtGui.QTouchEvent.TouchPoint. setPressure ( pressure )
    参数: pressure PySide.QtCore.qreal

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.pressure()

    PySide.QtGui.QTouchEvent.TouchPoint. setRect ( rect )
    参数: rect PySide.QtCore.QRectF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.rect()

    PySide.QtGui.QTouchEvent.TouchPoint. setScenePos ( scenePos )
    参数: scenePos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.scenePos()

    PySide.QtGui.QTouchEvent.TouchPoint. setSceneRect ( sceneRect )
    参数: sceneRect PySide.QtCore.QRectF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.sceneRect()

    PySide.QtGui.QTouchEvent.TouchPoint. setScreenPos ( screenPos )
    参数: screenPos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.screenPos()

    PySide.QtGui.QTouchEvent.TouchPoint. setScreenRect ( screenRect )
    参数: screenRect PySide.QtCore.QRectF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.screenRect()

    PySide.QtGui.QTouchEvent.TouchPoint. setStartNormalizedPos ( startNormalizedPos )
    参数: startNormalizedPos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.startNormalizedPos()

    PySide.QtGui.QTouchEvent.TouchPoint. setStartPos ( startPos )
    参数: startPos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.startPos()

    PySide.QtGui.QTouchEvent.TouchPoint. setStartScenePos ( startScenePos )
    参数: startScenePos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.startScenePos()

    PySide.QtGui.QTouchEvent.TouchPoint. setStartScreenPos ( startScreenPos )
    参数: startScreenPos PySide.QtCore.QPointF

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.startScreenPos()

    PySide.QtGui.QTouchEvent.TouchPoint. startNormalizedPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the normalized starting position of this touch point.

    The coordinates are normalized to the size of the touch device, i.e. (0,0) is the top-left corner and (1,1) is the bottom-right corner.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos() PySide.QtGui.QTouchEvent::TouchPoint.lastNormalizedPos()

    PySide.QtGui.QTouchEvent.TouchPoint. startPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the starting position of this touch point, relative to the widget or PySide.QtGui.QGraphicsItem that received the event.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.pos() PySide.QtGui.QTouchEvent::TouchPoint.lastPos()

    PySide.QtGui.QTouchEvent.TouchPoint. startScenePos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the starting scene position of this touch point.

    The scene position is the position in PySide.QtGui.QGraphicsScene coordinates if the PySide.QtGui.QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.scenePos() PySide.QtGui.QTouchEvent::TouchPoint.lastScenePos()

    PySide.QtGui.QTouchEvent.TouchPoint. startScreenPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the starting screen position of this touch point.

    另请参阅

    PySide.QtGui.QTouchEvent::TouchPoint.screenPos() PySide.QtGui.QTouchEvent::TouchPoint.lastScreenPos()

    PySide.QtGui.QTouchEvent.TouchPoint. state ( )
    返回类型: PySide.QtCore.Qt.TouchPointState

    Returns the current state of this touch point.