Obsolete Members for QGeoShape

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

公共函数

(obsolete) void extendShape (const QGeoCoordinate & coordinate )

成员函数文档编制

void QGeoShape:: extendShape (const QGeoCoordinate & coordinate )

This method used to extend the geo shape to also cover the coordinate coordinate .

It currently only works for QGeoCircle and QGeoRectangle , on which the functionality remains, now also accessible through QGeoCircle::extendCircle and QGeoRectangle::extendRectangle .

This method should therefore not be called on a generic QGeoShape any longer, as the behavior for other shape types is undefined.

另请参阅 QGeoRectangle::extendRectangle and QGeoCircle::extendCircle .