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 はピクチャをポインタで返すバージョンのpicture()
を提供していました。このバージョンは現在削除されています。このオーバーロードは、by-pointer関数とby-value関数を明示的に区別することができます。
[deprecated]
QPixmap QLabel::pixmap(Qt::ReturnByValueConstant) const
この関数は非推奨である。新しいコードでは使用しないことを強くお勧めします。
代わりに引数なしのオーバーロードを使用してください。
ラベルの pixmap を返します。
以前は、Qt はポインタで pixmap を返すバージョンのpixmap()
を提供していました。このバージョンは現在削除されています。このオーバーロードは、by-pointer関数とby-value関数を明示的に区別することができます。
QPixmap pixmapVal = label->pixmap(Qt::ReturnByValue);
setPixmap()も参照してください 。
© 2025 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.