以下成员源于类 QPalette 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
|
QPalette (const QColor & windowText , const QColor & window , const QColor & light , const QColor & dark , const QColor & mid , const QColor & text , const QColor & base ) |
(obsolete)
const QBrush &
|
background () const |
(obsolete)
const QBrush &
|
foreground () const |
(obsolete)
int
|
serialNumber () const |
Constructs a palette with the specified windowText , window , light , dark , mid , text ,和 base colors. The button color will be set to the window color.
使用 window () 代替。
使用 windowText () 代替。
返回的数字标识内容对于此 QPalette 对象。截然不同的 QPalette objects can only have the same serial number if they refer to the same contents (but they don't have to). Also, the serial number of a QPalette may change during the lifetime of the object.
使用 cacheKey () 代替。
警告: The serial number doesn't necessarily change when the palette is altered. This means that it may be dangerous to use it as a cache key.
另请参阅 operator== ().