以下成員源於類 QQuickPaintedItem 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(棄用)
contentsScale
: qreal
(棄用)
contentsSize
: QSize
(棄用)
QRectF
|
contentsBoundingRect () const |
(棄用)
qreal
|
contentsScale () const |
(棄用)
QSize
|
contentsSize () const |
(棄用)
void
|
resetContentsSize () |
(棄用)
void
|
setContentsScale (qreal) |
(棄用)
void
|
setContentsSize (const QSize &) |
(棄用)
void
|
contentsScaleChanged () |
(棄用)
void
|
contentsSizeChanged () |
This property is deprecated. 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 ().
This property is deprecated. 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 ().
This function is deprecated. We strongly advise against using it in new code.
This function is provided for compatibility, use size in combination with textureSize to decide the size of what you are drawing.
另請參閱 width (), height (),和 textureSize ().
This function is deprecated. We strongly advise against using it in new code.
此方便函數相當於調用 setContentsSize (QSize()).