Expression qt.QPen(table) returns a pen whose settings
are determined by the fields of table table.
The following fields are recognized:
style specifies the name of the
pen style.
The default style is SolidLine.
brush contains a qt.QBrush value that
defines the appearance of the painted areas.
color contains a qt.QColor value for the brush color.
Setting this field is equivalent to setting field brush
with a solid brush of the specified color.
Field brush has precedence over this field.
width contains the desired line width.
A line width of zero indicates a cosmetic pen. This means that the pen
width is always drawn one pixel wide, independent of the
transformation on the painter.
cosmetic to true indicates that
the pen width has a constant width regardless of the
transformation on the painter.
style specifies the name of the
pen style
which determines
joinStyle specifies the name of the
pen join style
which determines how lines meet with different angles.
The default join style is BevelJoin.
capStyle specifies the name of the
pen cap style
which determines how lines end are drawn.
The default cap style is SquareCap.
miterLimit determines how far a
miter join
can extend from the join point. This is used to reduce artifacts
between line joins where the lines are close to parallel.