Obsolete Members for QListWidgetItem

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

公共函數

(obsolete) QColor backgroundColor () const
(obsolete) virtual void setBackgroundColor (const QColor & color )
(obsolete) void setTextColor (const QColor & color )
(obsolete) QColor textColor () const

成員函數文檔編製

QColor QListWidgetItem:: backgroundColor () const

This function is deprecated. Use background () 代替。

另請參閱 setBackgroundColor ().

[虛擬] void QListWidgetItem:: setBackgroundColor (const QColor & color )

This function is deprecated. Use setBackground () 代替。

另請參閱 backgroundColor ().

void QListWidgetItem:: setTextColor (const QColor & color )

This function is deprecated. Use setForeground () 代替。

另請參閱 textColor ().

QColor QListWidgetItem:: textColor () const

Returns the color used to display the list item's text.

This function is deprecated. Use foreground () 代替。

另請參閱 setTextColor ().