Obsolete Members for QPainterPath

以下成員源於類 QPainterPath 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) void addRoundRect (const QRectF & r , int xRnd , int yRnd )
(obsolete) void addRoundRect (qreal x , qreal y , qreal w , qreal h , int xRnd , int yRnd )
(obsolete) void addRoundRect (const QRectF & rect , int roundness )
(obsolete) void addRoundRect (qreal x , qreal y , qreal width , qreal height , int roundness )
(obsolete) QPainterPath subtractedInverted (const QPainterPath & p ) const
(obsolete) QPolygonF toFillPolygon (const QMatrix & matrix ) const
(obsolete) QList<QPolygonF> toFillPolygons (const QMatrix & matrix ) const
(obsolete) QList<QPolygonF> toSubpathPolygons (const QMatrix & matrix ) const

成員函數文檔編製

void QPainterPath:: addRoundRect (const QRectF & r , int xRnd , int yRnd )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Adds a rectangle r 帶圓角到路徑。

The xRnd and yRnd arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.

另請參閱 addRoundedRect ().

void QPainterPath:: addRoundRect ( qreal x , qreal y , qreal w , qreal h , int xRnd , int yRnd )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

Adds a rectangle with rounded corners to the path. The rectangle is constructed from x , y , and the width and height w and h .

The xRnd and yRnd arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.

另請參閱 addRoundedRect ().

void QPainterPath:: addRoundRect (const QRectF & rect , int roundness )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

Adds a rounded rectangle, rect , to the path.

The roundness argument specifies uniform roundness for the rectangle. Vertical and horizontal roundness factors will be adjusted accordingly to act uniformly around both axes. Use this method if you want a rectangle equally rounded across both the X and Y axis.

該函數在 Qt 4.3 引入。

另請參閱 addRoundedRect ().

void QPainterPath:: addRoundRect ( qreal x , qreal y , qreal width , qreal height , int roundness )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

Adds a rounded rectangle to the path, defined by the coordinates x and y 采用指定 width and height .

The roundness argument specifies uniform roundness for the rectangle. Vertical and horizontal roundness factors will be adjusted accordingly to act uniformly around both axes. Use this method if you want a rectangle equally rounded across both the X and Y axis.

該函數在 Qt 4.3 引入。

另請參閱 addRoundedRect ().

QPainterPath QPainterPath:: subtractedInverted (const QPainterPath & p ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 subtracted () 代替。

該函數在 Qt 4.3 引入。

另請參閱 subtracted ().

QPolygonF QPainterPath:: toFillPolygon (const QMatrix & matrix ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

Use toFillPolygon(const QTransform &matrix) instead.

QList < QPolygonF > QPainterPath:: toFillPolygons (const QMatrix & matrix ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

Use toFillPolygons(const QTransform &matrix) instead.

QList < QPolygonF > QPainterPath:: toSubpathPolygons (const QMatrix & matrix ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

Use toSubpathPolygons(const QTransform &matrix) instead.