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.

This function is deprecated since 5.9 because it returns the outer bounds 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().

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.

This function is deprecated since 5.9 because it returns the outer bounds 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().

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.

This function is deprecated since 5.9 because it returns the outer bounds of the touchpoint regardless of rotation, whereas a touchpoint is more correctly modeled as an ellipse at position screenPos() with ellipseDiameters() which are independent of rotation().

© 2023 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.