Obsolete Members for QQuickPaintedItem

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

特性

公共函數

(obsolete) QRectF contentsBoundingRect () const
(obsolete) dumpObjectInfo ()
(obsolete) dumpObjectTree ()
(obsolete) void resetContentsSize ()

特性文檔編製

contentsScale : qreal

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Obsolete method for scaling the contents.

This function is provided for compatibility, use size () in combination with textureSize () to decide the size of what you are drawing.

訪問函數:

qreal contentsScale () const
void setContentsScale ( qreal )

通知程序信號:

void contentsScaleChanged ()

另請參閱 width (), height (),和 textureSize ().

contentsSize : QSize

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Obsolete method for setting the contents size.

This function is provided for compatibility, use size in combination with textureSize to decide the size of what you are drawing.

訪問函數:

QSize contentsSize () const
void setContentsSize ( const QSize & )

通知程序信號:

void contentsSizeChanged ()

另請參閱 width (), height (),和 textureSize ().

成員函數文檔編製

QRectF QQuickPaintedItem:: contentsBoundingRect () const

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

This function is provided for compatibility, use size in combination with textureSize to decide the size of what you are drawing.

另請參閱 width (), height (),和 textureSize ().

void QQuickPaintedItem:: resetContentsSize ()

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

此方便函數相當於調用 setContentsSize (QSize()).