Obsolete Members for QQuickPaintedItem
QQuickPaintedItem クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるようにするために提供されているものです。新しいコードでの使用は強く推奨しません。
プロパティ
(deprecated)contentsScale : qreal(deprecated)contentsSize : QSize
パブリック関数
(deprecated) QRectF | contentsBoundingRect() const |
(deprecated) qreal | contentsScale() const |
(deprecated) QSize | contentsSize() const |
(deprecated) void | resetContentsSize() |
(deprecated) void | setContentsScale(qreal) |
(deprecated) void | setContentsSize(const QSize &) |
シグナル
(deprecated) void | contentsScaleChanged() |
(deprecated) void | contentsSizeChanged() |
プロパティのドキュメント
[deprecated] contentsScale : qreal
この列挙型は非推奨となっています。新しいコードでの使用は強く推奨しません。
コンテンツの拡大・縮小を行う、廃止予定のメソッドです。
この関数は互換性のために提供されているものです。描画対象のサイズを決定するには、size() をtextureSize() と組み合わせて使用してください。
アクセス関数:
| qreal | contentsScale() const |
| void | setContentsScale(qreal) |
通知シグナル:
| void | contentsScaleChanged() |
width()、height()、およびtextureSize()も参照してください 。
[deprecated] contentsSize : QSize
この列挙型は非推奨となっています。新しいコードでの使用は強く推奨しません。
コンテンツのサイズを設定するための、廃止予定のメソッドです。
この関数は互換性のために提供されているものです。描画対象のサイズを決定する際は、`size` を `textureSize ` と組み合わせて使用してください。
アクセス関数:
| QSize | contentsSize() const |
| void | setContentsSize(const QSize &) |
通知シグナル:
| void | contentsSizeChanged() |
関連項目: width()、height()、textureSize()。
メンバ関数のドキュメント
[deprecated] QRectF QQuickPaintedItem::contentsBoundingRect() const
この関数は非推奨です。新しいコードでの使用は強くお勧めしません。
この関数は互換性のために提供されているものです。描画対象のサイズを決定する際には、textureSize と組み合わせて `size` を使用してください。
width()、height()、およびtextureSize()も参照してください 。
[deprecated] void QQuickPaintedItem::resetContentsSize()
この関数は非推奨です。新しいコードでの使用は強くお勧めしません。
この利便性向上のための関数は、setContentsSize (QSize())を呼び出すのと同じ効果があります。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.