Compatibility Members for QBrush

The following members of class QBrushare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

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

Member Function Documentation

QPixmap * QBrush::pixmap() const

Returns a pointer to the custom brush pattern.

Use texture() instead.

See also setPixmap().

void QBrush::setPixmap(const QPixmap & pixmap)

Sets a custom pattern for this brush.

Use setTexture() instead.

See also pixmap().

QBrush::operator const QColor &() const

Returns the brush's color.

Use color() instead.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.