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 ().

[virtual] 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 ().