English 中文(简体)
PyQt5 - BrushStyle Constants
  • 时间:2024-11-05

PyQt5 - BrushStyle Constants


Previous Page Next Page  

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.SopdPattern Uniform color
Qt.Dense1Pattern Extremely dense brush pattern
Qt.HorPattern Horizontal pnes
Qt.VerPattern Vertical pnes
Qt.CrossPattern Crossing horizontal and vertical pnes
Qt.BDiagPattern Backward diagonal pnes
Qt.FDiagPattern Forward diagonal pnes
Qt.DiagCrossPattern Crossing diagonal pnes

Predefined QColor Styles

Given below are the Predefined QColor Styles −

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

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