Obsolete Members for QLabel
QLabel クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。
パブリック関数
(deprecated) QPicture | picture(Qt::ReturnByValueConstant) const |
(deprecated) QPixmap | pixmap(Qt::ReturnByValueConstant) const |
メンバー関数のドキュメント
[deprecated] QPicture QLabel::picture(Qt::ReturnByValueConstant) const
この関数は非推奨です。新しいコードでの使用は強く推奨しません。
代わりに、引数なしのオーバーロードを使用してください。
ラベルの画像を返します。
以前は、Qt XMLにはポインタ渡しで画像を返すpicture() のバージョンがありました。そのバージョンは現在削除されています。このオーバーロードにより、ポインタ渡し関数と値渡し関数を明示的に区別することが可能でした。
[deprecated] QPixmap QLabel::pixmap(Qt::ReturnByValueConstant) const
この関数は非推奨です。新しいコードでの使用は強く推奨しません。
代わりに、引数なしのオーバーロードを使用してください。
ラベルのピクマップを返します。
以前は、Qt XML ではピクマップをポインタ渡しで返す `pixmap() ` のバージョンが提供されていました。そのバージョンは現在削除されています。このオーバーロードにより、ポインタ渡し関数と値渡し関数を明示的に区別することが可能でした。
QPixmap pixmapVal = label->pixmap(Qt::ReturnByValue);setPixmap()も参照してください 。
© 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.