Obsolete Members for QLabel

以下成員源於類 QLabel 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) const QPicture * picture () const
(obsolete) const QPixmap * pixmap () const

成員函數文檔編製

const QPicture *QLabel:: picture () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

New code should use the other overload which returns QPicture by-value.

This function returns the label's picture or nullptr if the label doesn't have a picture.

另請參閱 setPicture ().

const QPixmap *QLabel:: pixmap () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

New code should use the other overload which returns QPixmap by-value.

另請參閱 setPixmap ().