QPen setBrush is a method used in the Qt library which is a cross-platform application framework. This method is used to set the brush of a pen. A brush in Qt defines how a shape is filled with a color and can be set using QBrush.
In this example, we create a blue-colored pen and set its brush to a dense dotted pattern of yellow color. Then, we set the pen's color to the painter object.
Package/library: Qt library.
C++ (Cpp) QPen::setBrush - 30 examples found. These are the top rated real world C++ (Cpp) examples of QPen::setBrush extracted from open source projects. You can rate examples to help us improve the quality of examples.