Obsolete Members for TouchPoint

以下成员源于类 TouchPoint 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QRectF rect () const
(obsolete) QRectF sceneRect () const
(obsolete) QRectF screenRect () const

成员函数文档编制

QRectF TouchPoint:: rect () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

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

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

of the touchpoint regardless of rotation, whereas a touchpoint is more correctly modeled as an ellipse at position pos () 采用 ellipseDiameters () which are independent of rotation ().

另请参阅 scenePos () 和 ellipseDiameters ().

QRectF TouchPoint:: sceneRect () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

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.

of the touchpoint regardless of rotation, whereas a touchpoint is more correctly modeled as an ellipse at position scenePos () 采用 ellipseDiameters () which are independent of rotation ().

另请参阅 scenePos () 和 ellipseDiameters ().

QRectF TouchPoint:: screenRect () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

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.

touchpoint regardless of rotation, whereas a touchpoint is more correctly modeled as an ellipse at position screenPos () 采用 ellipseDiameters () which are independent of rotation ().

另请参阅 screenPos () 和 ellipseDiameters ().