7#include <QtCore/qshareddata.h>
8#include <QtGui/qtguiglobal.h>
9#include <QtGui/qcolor.h>
10#include <QtGui/qbrush.h>
20#ifndef QT_NO_DATASTREAM
41 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QPen)
90 using DataPtr = QExplicitlySharedDataPointer<QPenPrivate>;
100Q_DECLARE_SHARED(
QPen)
102#ifndef QT_NO_DEBUG_STREAM
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
qreal widthF() const
Returns the pen width with floating point precision.
QList< qreal > dashPattern() const
Returns the dash pattern of this pen.
QPen()
Constructs a default black solid line pen with 1 width.
bool isCosmetic() const
Returns true if the pen is cosmetic; otherwise returns false.
void setWidth(int width)
Sets the pen width to the given width in pixels with integer precision.
void setWidthF(qreal width)
Sets the pen width to the given width in pixels with floating point precision.
Qt::PenCapStyle capStyle() const
Returns the pen's cap style.
void setBrush(const QBrush &brush)
Sets the brush used to fill strokes generated with this pen to the given brush.
QPen(QPen &&other) noexcept=default
void setJoinStyle(Qt::PenJoinStyle pcs)
Sets the pen's join style to the given style.
void setDashOffset(qreal doffset)
Sets the dash offset (the starting point on the dash pattern) for this pen to the offset specified.
bool operator!=(const QPen &p) const
Returns true if the pen is different from the given pen; otherwise false.
void setMiterLimit(qreal limit)
Sets the miter limit of this pen to the given limit.
QPen & operator=(const QPen &pen) noexcept
Assigns the given pen to this pen and returns a reference to this pen.
bool isSolid() const
Returns true if the pen has a solid fill, otherwise false.
Qt::PenJoinStyle joinStyle() const
Returns the pen's join style.
void setCosmetic(bool cosmetic)
Sets this pen to cosmetic or non-cosmetic, depending on the value of cosmetic.
void setDashPattern(const QList< qreal > &pattern)
Sets the dash pattern for this pen to the given pattern.
qreal miterLimit() const
Returns the miter limit of the pen.
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
qreal dashOffset() const
Returns the dash offset for the pen.
Qt::PenStyle style() const
Returns the pen style.
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
static void setCapStyle(int cap_style, GC gc)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QPen &)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QPen &)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
#define QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
myFilter setColor(QColor(128, 0, 0))