My Project
|
The QPen class defines how a CPainter should draw lines and outlines of shapes. More...
#include <qpen.h>
Public Member Functions | |
QPen (PenStyle) | |
QPen (const Color &color) | |
QPen (const QBrush &brush, float width, PenStyle s=SolidLine, PenCapStyle c=SquareCap, PenJoinStyle j=BevelJoin) | |
PenStyle | style () const |
void | setStyle (PenStyle) |
std::vector< float > | dashPattern () const |
void | setDashPattern (const std::vector< float > &pattern) |
float | dashOffset () const |
void | setDashOffset (float doffset) |
float | miterLimit () const |
void | setMiterLimit (float limit) |
float | widthF () const |
void | setWidthF (float width) |
int | width () const |
void | setWidth (int width) |
Color | color () const |
void | setColor (const Color &color) |
QBrush | brush () const |
void | setBrush (const QBrush &brush) |
bool | isSolid () const |
PenCapStyle | capStyle () const |
void | setCapStyle (PenCapStyle pcs) |
PenJoinStyle | joinStyle () const |
void | setJoinStyle (PenJoinStyle pcs) |
bool | isCosmetic () const |
void | setCosmetic (bool cosmetic) |
bool | operator== (const QPen &p) const |
bool | operator!= (const QPen &p) const |
The QPen class defines how a CPainter should draw lines and outlines of shapes.
The pen style defines the line type. The brush is used to fill strokes generated with the pen. Use the QBrush class to specify fill styles.