以下成員源於類 QLabel 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(棄用)
QPicture
|
picture (Qt::ReturnByValueConstant) const |
(棄用)
QPixmap
|
pixmap (Qt::ReturnByValueConstant) const |
This function is deprecated. We strongly advise against using it in new code.
Use the overload without argument instead.
返迴標簽的圖片。
先前,Qt 提供版本的
picture()
which returned the picture by-pointer. That version is now removed. This overload allowed to explicitly differentiate between the by-pointer function and the by-value.
另請參閱 setPicture ().
This function is deprecated. We strongly advise against using it in new code.
Use the overload without argument instead.
Returns the label's pixmap.
先前,Qt 提供版本的
pixmap()
which returned the pixmap by-pointer. That version has now been removed. This overload allowed to explicitly differentiate between the by-pointer function and the by-value.
QPixmap pixmapVal = label->pixmap(Qt::ReturnByValue);
另請參閱 setPixmap ().