Obsolete Members for QLineF

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

公共函数

(obsolete) qreal angle (const QLineF & line ) const

成员函数文档编制

qreal QLineF:: angle (const QLineF & line ) const

Returns the angle (in degrees) between this line and the given line , taking the direction of the lines into account. If the lines do not intersect within their range, it is the intersection point of the extended lines that serves as origin (see QLineF::UnboundedIntersection ).

When the lines are parallel, this function returns 0 if they have the same direction; otherwise it returns 180.

另请参阅 intersect ().