Obsolete Members for QSvgRenderer

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

公共函數

(obsolete) QMatrix matrixForElement (const QString & id ) const

成員函數文檔編製

QMatrix QSvgRenderer:: matrixForElement (const QString & id ) const

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

使用 transformForElement () 代替。

Returns the transformation matrix for the element with the given id . The matrix is a product of the transformation of the element's parents. The transformation of the element itself is not included.

To find the bounding rectangle of the element in logical coordinates, you can apply the matrix on the rectangle returned from boundsOnElement ().

該函數在 Qt 4.2 引入。

另請參閱 boundsOnElement ().