PyQt5 - BrushStyle Constants



In this chapter, we shall learn Brush Style Constants.

Brush Style Constants

Given below are the Brush Style Constants −

Qt.NoBrush No brush pattern
Qt.SolidPattern Uniform color
Qt.Dense1Pattern Extremely dense brush pattern
Qt.HorPattern Horizontal lines
Qt.VerPattern Vertical lines
Qt.CrossPattern Crossing horizontal and vertical lines
Qt.BDiagPattern Backward diagonal lines
Qt.FDiagPattern Forward diagonal lines
Qt.DiagCrossPattern Crossing diagonal lines

Predefined QColor Styles

Given below are the Predefined QColor Styles −

Qt.NoBrush No brush pattern
Qt.SolidPattern Uniform color
Qt.Dense1Pattern Extremely dense brush pattern
Qt.HorPattern Horizontal lines
Qt.VerPattern Vertical lines
Qt.CrossPattern Crossing horizontal and vertical lines
Qt.BDiagPattern Backward diagonal lines
Qt.FDiagPattern Forward diagonal lines
Qt.DiagCrossPattern Crossing diagonal lines

Predefined QColor Objects

Given below are the Predefined QColor Objects −

Qt.white
Qt.black
Qt.red
Qt.darkRed
Qt.green
Qt.darkGreen
Qt.blue
Qt.cyan
Qt.magenta
Qt.yellow
Qt.darkYellow
Qt.gray

Custom color can be chosen by specifying RGB or CMYK or HSV values.

Advertisements