Obsolete Members for TouchPoint
The following members of class TouchPoint are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) QRectF | rect() const |
(obsolete) QRectF | sceneRect() const |
(obsolete) QRectF | screenRect() const |
Member Function Documentation
QRectF TouchPoint::rect() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
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().
Note: 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() with ellipseDiameters() which are independent of rotation().
See also scenePos() and ellipseDiameters().
QRectF TouchPoint::sceneRect() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns the rect for this touch point in scene coordinates.
Note: 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() with ellipseDiameters() which are independent of rotation().
See also scenePos() and ellipseDiameters().
QRectF TouchPoint::screenRect() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns the rect for this touch point in screen coordinates.
Note: 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() with ellipseDiameters() which are independent of rotation().
See also screenPos() and ellipseDiameters().
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.