59 #ifndef QT_NO_DATASTREAM
64 class Q_GUI_EXPORT QPen
72 QPen(
const QPen &pen);
76 QPen &operator=(
const QPen &pen);
77 #ifdef Q_COMPILER_RVALUE_REFS
78 inline QPen &operator=(QPen &&other)
79 {
qSwap(d, other.d);
return *
this; }
81 inline void swap(QPen &other) {
qSwap(d, other.d); }
89 qreal dashOffset()
const;
90 void setDashOffset(qreal doffset);
92 qreal miterLimit()
const;
93 void setMiterLimit(qreal
limit);
96 void setWidthF(qreal width);
99 void setWidth(
int width);
102 void setColor(
const QColor &color);
104 QBrush brush()
const;
105 void setBrush(
const QBrush &brush);
107 bool isSolid()
const;
115 bool isCosmetic()
const;
116 void setCosmetic(
bool cosmetic);
120 operator QVariant()
const;
128 class QPenPrivate *d;
135 Q_DECLARE_SHARED(QPen)
137 #ifndef QT_NO_DEBUG_STREAM
bool operator!=(const QPen &p) const
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QPen &)
Q_DECLARE_TYPEINFO(QPen, Q_MOVABLE_TYPE)
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
Q_INLINE_TEMPLATE void qSwap(QScopedPointer< T, Cleanup > &p1, QScopedPointer< T, Cleanup > &p2)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QPen &)