Obsolete Members for QRect

The following members of class QRect are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

公有函数

(obsolete) QRect intersect(const QRect &rectangle) const
(obsolete) QRect unite(const QRect &rectangle) const

成员函数

QRect QRect::intersect(const QRect &rectangle) const

Use intersected(rectangle) instead.

QRect QRect::unite(const QRect &rectangle) const

Use united(rectangle) instead.