QQuickPen Class
For specifying a pen used for drawing rectangle borders on a QQuickView. More...
Header: | #include <QQuickPen> |
Inherits: | QObject |
Public Functions
QColor | color() const |
bool | pixelAligned() const |
void | setColor(const QColor &c) |
void | setPixelAligned(bool aligned) |
void | setWidth(qreal w) |
qreal | width() const |
Signals
void | colorChanged() |
void | pixelAlignedChanged() |
void | widthChanged() |
Detailed Description
\internal
By default, the pen is invalid and nothing is drawn. You must either set a color (then the default width is 1) or a width (then the default color is black).
A width of 1 indicates is a single-pixel line on the border of the item being painted.
Example:
Rectangle { border.width: 2 border.color: "red" }