以下成员源于类 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 () |
[deprecated]
contentsScale
:
qreal
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 ().
[deprecated]
contentsSize
:
QSize
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 ().
[deprecated]
QRectF
QQuickPaintedItem::
contentsBoundingRect
() const
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 ().
[deprecated]
void
QQuickPaintedItem::
resetContentsSize
()
This function is deprecated. We strongly advise against using it in new code.
此方便函数相当于调用 setContentsSize (QSize()).