PythonQt.QtGui.QBrush · declarations 001
color
color() -> Any
X.color() -> PythonQt.QtGui.QColor
Supplemental documentation: Qt 5 reference:
const QColor \&QBrush::color() const
Returns the brush color.
See also setColor().
Upstream PySide2 reference signatures (binding differences may apply):
color(self) -> PySide2.QtGui.QColor
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#color
gradient
gradient() -> Any
X.gradient() -> PythonQt.QtGui.QGradient
Supplemental documentation: Qt 5 reference:
const QGradient *QBrush::gradient() const
Returns the gradient describing this brush.
Upstream PySide2 reference signatures (binding differences may apply):
gradient(self) -> PySide2.QtGui.QGradient
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#gradient
isOpaque
isOpaque() -> bool
X.isOpaque() -> bool
Supplemental documentation: Qt 5 reference:
bool QBrush::isOpaque() const
Returns true if the brush is fully opaque otherwise false. A brush is considered
opaque if:
- The alpha component of the color() is 255.
- Its texture() does not have an alpha channel and is not a QBitmap.
- The colors in the gradient() all have an alpha component that is 255.
- It is an extended radial gradient.
Upstream PySide2 reference signatures (binding differences may apply):
isOpaque(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#isOpaque
matrix
matrix() -> Any
X.matrix() -> PythonQt.QtGui.QMatrix
Upstream PySide2 reference signatures (binding differences may apply):
matrix(self) -> PySide2.QtGui.QMatrix
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#matrix
setColor
setColor(color: Any) -> None
X.setColor(color)
Supplemental documentation: Qt 5 reference:
void QBrush::setColor(const QColor \&color)
Sets the brush color to the given color.
Note that calling setColor() will not make a difference if the style is a gradient. The same is the case if the style is Qt::TexturePattern style unless the current texture is a QBitmap.
See also color().
void QBrush::setColor(Qt::GlobalColor color)
This is an overloaded function.
Sets the brush color to the given color.
Upstream PySide2 reference signatures (binding differences may apply):
setColor(self, color: PySide2.QtCore.Qt.GlobalColor) -> None
setColor(self, color: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#setColor
setMatrix
setMatrix(mat: Any) -> None
X.setMatrix(mat)
Upstream PySide2 reference signatures (binding differences may apply):
setMatrix(self, mat: PySide2.QtGui.QMatrix) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#setMatrix
setStyle
setStyle(arg__1: Any) -> None
X.setStyle(arg__1)
Supplemental documentation: Qt 5 reference:
void QBrush::setStyle(Qt::BrushStyle style)
Sets the brush style to style.
See also style().
Upstream PySide2 reference signatures (binding differences may apply):
setStyle(self, arg__1: PySide2.QtCore.Qt.BrushStyle) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#setStyle
setTexture
setTexture(pixmap: Any) -> None
X.setTexture(pixmap)
Supplemental documentation: Qt 5 reference:
void QBrush::setTexture(const QPixmap \&pixmap)
Sets the brush pixmap to pixmap. The style is set to Qt::TexturePattern.
The current brush color will only have an effect for monochrome pixmaps, i.e. for QPixmap::depth() \=\= 1 (QBitmaps).
See also texture().
Upstream PySide2 reference signatures (binding differences may apply):
setTexture(self, pixmap: PySide2.QtGui.QPixmap) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#setTexture
setTextureImage
setTextureImage(image: Any) -> None
X.setTextureImage(image)
Supplemental documentation: Qt 5 reference:
void QBrush::setTextureImage(const QImage \&image)
Sets the brush image to image. The style is set to Qt::TexturePattern.
Note the current brush color will not have any affect on monochrome images, as opposed
to calling setTexture()
with a QBitmap. If you want to change
the color of monochrome image brushes, either convert the image to
QBitmap with QBitmap::fromImage()
and set the resulting QBitmap as a
texture, or change the entries in the color table for the image.
This function was introduced in Qt 4.2.
See also textureImage() and setTexture().
Upstream PySide2 reference signatures (binding differences may apply):
setTextureImage(self, image: PySide2.QtGui.QImage) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#setTextureImage
setTransform
setTransform(arg__1: Any) -> None
X.setTransform(arg__1)
Supplemental documentation: Qt 5 reference:
void QBrush::setTransform(const QTransform \&matrix)
Sets matrix as an explicit transformation matrix on the current brush. The brush transformation matrix is merged with QPainter transformation matrix to produce the final result.
This function was introduced in Qt 4.3.
See also transform().
Upstream PySide2 reference signatures (binding differences may apply):
setTransform(self, arg__1: PySide2.QtGui.QTransform) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#setTransform
style
style() -> Any
X.style()
Supplemental documentation: Qt 5 reference:
Qt::BrushStyle QBrush::style() const
Returns the brush style.
See also setStyle().
Upstream PySide2 reference signatures (binding differences may apply):
style(self) -> PySide2.QtCore.Qt.BrushStyle
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#style
swap
swap(other: Any) -> None
X.swap(other)
Supplemental documentation: Qt 5 reference:
void QBrush::swap(QBrush \&other)
Swaps brush other with this brush. This operation is very fast and never fails.
This function was introduced in Qt 4.8.
Upstream PySide2 reference signatures (binding differences may apply):
swap(self, other: PySide2.QtGui.QBrush) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#swap
texture
texture() -> Any
X.texture() -> PythonQt.QtGui.QPixmap
Supplemental documentation: Qt 5 reference:
QPixmap QBrush::texture() const
Returns the custom brush pattern, or a null pixmap if no custom brush pattern has been set.
See also setTexture().
Upstream PySide2 reference signatures (binding differences may apply):
texture(self) -> PySide2.QtGui.QPixmap
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#texture
textureImage
textureImage() -> Any
X.textureImage() -> PythonQt.QtGui.QImage
Supplemental documentation: Qt 5 reference:
QImage QBrush::textureImage() const
Returns the custom brush pattern, or a null image if no custom brush pattern has been set.
If the texture was set as a QPixmap it will be converted to a QImage.
This function was introduced in Qt 4.2.
See also setTextureImage().
Upstream PySide2 reference signatures (binding differences may apply):
textureImage(self) -> PySide2.QtGui.QImage
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#textureImage
transform
transform() -> Any
X.transform() -> PythonQt.QtGui.QTransform
Supplemental documentation: Qt 5 reference:
QTransform QBrush::transform() const
Returns the current transformation matrix for the brush.
This function was introduced in Qt 4.3.
See also setTransform().
Upstream PySide2 reference signatures (binding differences may apply):
transform(self) -> PySide2.QtGui.QTransform
Source: https://doc.qt.io/archives/qt-5.15/qbrush.html#transform