Compatibility Members for QBrush

以下成员源于类 QBrush are part of the Qt compatibility layer. We advise against using them in new code.

公共函数

QPixmap * pixmap () const
void setPixmap (const QPixmap & pixmap )
operator const QColor & () const

成员函数文档编制

QPixmap * QBrush:: pixmap () const

Returns a pointer to the custom brush pattern.

使用 texture () 代替。

另请参阅 setPixmap ().

void QBrush:: setPixmap (const QPixmap & pixmap )

Sets a custom pattern for this brush.

使用 setTexture () 代替。

另请参阅 pixmap ().

QBrush:: operator const QColor & () const

Returns the brush's color.

使用 color () 代替。