Obsolete Members for QTableWidgetItem

The following members of class QTableWidgetItem are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

公有函数

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

成员函数

QColor QTableWidgetItem::backgroundColor() const

This function is deprecated. Use background() instead.

参见 setBackgroundColor().

void QTableWidgetItem::setBackgroundColor(const QColor &color)

This function is deprecated. Use setBackground() instead.

参见 backgroundColor().

void QTableWidgetItem::setTextColor(const QColor &color)

This function is deprecated. Use setForeground() instead.

参见 textColor().

QColor QTableWidgetItem::textColor() const

This function is deprecated. Use foreground() instead.

参见 setTextColor().