Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickShapePath Class Reference

#include <qquickshape_p.h>

+ Inheritance diagram for QQuickShapePath:
+ Collaboration diagram for QQuickShapePath:

Public Types

enum  FillRule { OddEvenFill = Qt::OddEvenFill , WindingFill = Qt::WindingFill }
 
enum  JoinStyle { MiterJoin = Qt::MiterJoin , BevelJoin = Qt::BevelJoin , RoundJoin = Qt::RoundJoin }
 
enum  CapStyle { FlatCap = Qt::FlatCap , SquareCap = Qt::SquareCap , RoundCap = Qt::RoundCap }
 
enum  StrokeStyle { SolidLine = Qt::SolidLine , DashLine = Qt::DashLine }
 
enum  PathHint {
  PathLinear = 0x1 , PathQuadratic = 0x2 , PathConvex = 0x4 , PathFillOnRight = 0x8 ,
  PathSolid = 0x10 , PathNonIntersecting = 0x20 , PathNonOverlappingControlPointTriangles = 0x40
}
 

Signals

void shapePathChanged ()
 
void strokeColorChanged ()
 
void strokeWidthChanged ()
 
void fillColorChanged ()
 
void fillRuleChanged ()
 
void joinStyleChanged ()
 
void miterLimitChanged ()
 
void capStyleChanged ()
 
void strokeStyleChanged ()
 
void dashOffsetChanged ()
 
void dashPatternChanged ()
 
 Q_REVISION (6, 7) void pathHintsChanged()
 
- Signals inherited from QQuickPath
void changed ()
 
void startXChanged ()
 
void startYChanged ()
 
 Q_REVISION (6, 6) void simplifyChanged()
 
 Q_REVISION (2, 14) void scaleChanged()
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 

Public Member Functions

 QQuickShapePath (QObject *parent=nullptr)
 
 ~QQuickShapePath ()
 
QColor strokeColor () const
 \qmlproperty color QtQuick.Shapes::ShapePath::strokeColor
 
void setStrokeColor (const QColor &color)
 
qreal strokeWidth () const
 \qmlproperty real QtQuick.Shapes::ShapePath::strokeWidth
 
void setStrokeWidth (qreal w)
 
QColor fillColor () const
 \qmlproperty color QtQuick.Shapes::ShapePath::fillColor
 
void setFillColor (const QColor &color)
 
FillRule fillRule () const
 \qmlproperty enumeration QtQuick.Shapes::ShapePath::fillRule
 
void setFillRule (FillRule fillRule)
 
JoinStyle joinStyle () const
 \qmlproperty enumeration QtQuick.Shapes::ShapePath::joinStyle
 
void setJoinStyle (JoinStyle style)
 
int miterLimit () const
 \qmlproperty int QtQuick.Shapes::ShapePath::miterLimit
 
void setMiterLimit (int limit)
 
CapStyle capStyle () const
 \qmlproperty enumeration QtQuick.Shapes::ShapePath::capStyle
 
void setCapStyle (CapStyle style)
 
StrokeStyle strokeStyle () const
 \qmlproperty enumeration QtQuick.Shapes::ShapePath::strokeStyle
 
void setStrokeStyle (StrokeStyle style)
 
qreal dashOffset () const
 \qmlproperty real QtQuick.Shapes::ShapePath::dashOffset
 
void setDashOffset (qreal offset)
 
QVector< qrealdashPattern () const
 \qmlproperty list<real> QtQuick.Shapes::ShapePath::dashPattern
 
void setDashPattern (const QVector< qreal > &array)
 
QQuickShapeGradientfillGradient () const
 \qmlproperty ShapeGradient QtQuick.Shapes::ShapePath::fillGradient
 
void setFillGradient (QQuickShapeGradient *gradient)
 
void resetFillGradient ()
 
PathHints pathHints () const
 \qmlproperty PathHints QtQuick.Shapes::ShapePath::pathHints
 
void setPathHints (PathHints newPathHints)
 
- Public Member Functions inherited from QQuickPath
 QQuickPath (QObject *parent=nullptr)
 \qmltype PathElement \instantiates QQuickPathElement \inqmlmodule QtQuick
 
 ~QQuickPath () override
 
QQmlListProperty< QQuickPathElementpathElements ()
 
qreal startX () const
 \qmlproperty real QtQuick::Path::startX \qmlproperty real QtQuick::Path::startY These properties hold the starting position of the path.
 
void setStartX (qreal x)
 
bool hasStartX () const
 
qreal startY () const
 
void setStartY (qreal y)
 
bool hasStartY () const
 
bool isClosed () const
 \qmlproperty bool QtQuick::Path::closed This property holds whether the start and end of the path are identical.
 
QPainterPath path () const
 
QStringList attributes () const
 
qreal attributeAt (const QString &, qreal) const
 
 Q_REVISION (2, 14) Q_INVOKABLE QPointF pointAtPercent(qreal t) const
 
QPointF sequentialPointAt (qreal p, qreal *angle=nullptr) const
 
void invalidateSequentialHistory () const
 
QSizeF scale () const
 \qmlproperty size QtQuick::Path::scale
 
void setScale (const QSizeF &scale)
 
bool simplify () const
 
void setSimplify (bool s)
 \qmlproperty bool QtQuick::Path::simplify
 
QPainterPath createPath (const QPointF &startPoint, const QPointF &endPoint, const QStringList &attributes, qreal &pathLength, QList< AttributePoint > &attributePoints, bool *closed=nullptr)
 
QPainterPath createShapePath (const QPointF &startPoint, const QPointF &endPoint, qreal &pathLength, bool *closed=nullptr)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 
- Public Member Functions inherited from QQmlParserStatus
 QQmlParserStatus ()
 
virtual ~QQmlParserStatus ()
 

Properties

QColor strokeColor
 
qreal strokeWidth
 
QColor fillColor
 
FillRule fillRule
 
JoinStyle joinStyle
 
int miterLimit
 
CapStyle capStyle
 
StrokeStyle strokeStyle
 
qreal dashOffset
 
QVector< qrealdashPattern
 
QQuickShapeGradientfillGradient
 
QSizeF scale
 
PathHints pathHints
 
- Properties inherited from QQuickPath
QQmlListProperty< QQuickPathElementpathElements
 \qmlproperty list<PathElement> QtQuick::Path::pathElements This property holds the objects composing the path.
 
qreal startX
 
qreal startY
 
bool closed
 
bool simplify
 
FINALQSizeF scale
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Static Public Member Functions inherited from QQuickPath
static QPointF sequentialPointAt (const QPainterPath &path, const qreal &pathLength, const QList< AttributePoint > &attributePoints, QQuickCachedBezier &prevBez, qreal p, qreal *angle=nullptr)
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Protected Member Functions inherited from QQuickPath
 QQuickPath (QQuickPathPrivate &dd, QObject *parent=nullptr)
 
void componentComplete () override
 Invoked after the root component that caused this instantiation has completed construction.
 
void classBegin () override
 Invoked after class creation, but before any properties have been set.
 
void disconnectPathElements ()
 
void connectPathElements ()
 
void gatherAttributes ()
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Static Protected Member Functions inherited from QQuickPath
static QQuickPathElementpathElements_at (QQmlListProperty< QQuickPathElement > *, qsizetype)
 
static void pathElements_append (QQmlListProperty< QQuickPathElement > *, QQuickPathElement *)
 
static qsizetype pathElements_count (QQmlListProperty< QQuickPathElement > *)
 
static void pathElements_clear (QQmlListProperty< QQuickPathElement > *)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Detailed Description

Definition at line 183 of file qquickshape_p.h.

Member Enumeration Documentation

◆ CapStyle

Enumerator
FlatCap 
SquareCap 
RoundCap 

Definition at line 217 of file qquickshape_p.h.

◆ FillRule

Enumerator
OddEvenFill 
WindingFill 

Definition at line 204 of file qquickshape_p.h.

◆ JoinStyle

Enumerator
MiterJoin 
BevelJoin 
RoundJoin 

Definition at line 210 of file qquickshape_p.h.

◆ PathHint

Enumerator
PathLinear 
PathQuadratic 
PathConvex 
PathFillOnRight 
PathSolid 
PathNonIntersecting 
PathNonOverlappingControlPointTriangles 

Definition at line 230 of file qquickshape_p.h.

◆ StrokeStyle

Enumerator
SolidLine 
DashLine 

Definition at line 224 of file qquickshape_p.h.

Constructor & Destructor Documentation

◆ QQuickShapePath()

QQuickShapePath::QQuickShapePath ( QObject * parent = nullptr)

Definition at line 162 of file qquickshape.cpp.

References QQuickPath::changed(), QObject::connect(), d, QQuickShapePathPrivate::DirtyPath, emit, and shapePathChanged().

+ Here is the call graph for this function:

◆ ~QQuickShapePath()

QQuickShapePath::~QQuickShapePath ( )

Definition at line 177 of file qquickshape.cpp.

Member Function Documentation

◆ capStyle()

QQuickShapePath::CapStyle QQuickShapePath::capStyle ( ) const

\qmlproperty enumeration QtQuick.Shapes::ShapePath::capStyle

This property defines how the end points of lines are drawn. The default value is ShapePath.SquareCap.

\value ShapePath.FlatCap A square line end that does not cover the end point of the line.

\value ShapePath.SquareCap A square line end that covers the end point and extends beyond it by half the line width.

\value ShapePath.RoundCap A rounded line end.

Definition at line 370 of file qquickshape.cpp.

References d.

◆ capStyleChanged

void QQuickShapePath::capStyleChanged ( )
signal

Referenced by setCapStyle().

+ Here is the caller graph for this function:

◆ dashOffset()

qreal QQuickShapePath::dashOffset ( ) const

\qmlproperty real QtQuick.Shapes::ShapePath::dashOffset

This property defines the starting point on the dash pattern, measured in units used to specify the dash pattern.

The default value is 0.

See also
QPen::setDashOffset()

Definition at line 425 of file qquickshape.cpp.

References d.

◆ dashOffsetChanged

void QQuickShapePath::dashOffsetChanged ( )
signal

Referenced by setDashOffset().

+ Here is the caller graph for this function:

◆ dashPattern()

QVector< qreal > QQuickShapePath::dashPattern ( ) const

\qmlproperty list<real> QtQuick.Shapes::ShapePath::dashPattern

This property defines the dash pattern when ShapePath.strokeStyle is set to ShapePath.DashLine. The pattern must be specified as an even number of positive entries where the entries 1, 3, 5... are the dashes and 2, 4, 6... are the spaces. The pattern is specified in units of the pen's width.

The default value is (4, 2), meaning a dash of 4 * ShapePath.strokeWidth pixels followed by a space of 2 * ShapePath.strokeWidth pixels.

See also
QPen::setDashPattern()

Definition at line 456 of file qquickshape.cpp.

References d.

◆ dashPatternChanged

void QQuickShapePath::dashPatternChanged ( )
signal

Referenced by setDashPattern().

+ Here is the caller graph for this function:

◆ fillColor()

QColor QQuickShapePath::fillColor ( ) const

\qmlproperty color QtQuick.Shapes::ShapePath::fillColor

This property holds the fill color.

When set to transparent, no filling occurs.

The default value is white.

Definition at line 245 of file qquickshape.cpp.

References d.

◆ fillColorChanged

void QQuickShapePath::fillColorChanged ( )
signal

Referenced by setFillColor().

+ Here is the caller graph for this function:

◆ fillGradient()

QQuickShapeGradient * QQuickShapePath::fillGradient ( ) const

\qmlproperty ShapeGradient QtQuick.Shapes::ShapePath::fillGradient

This property defines the fill gradient. By default no gradient is enabled and the value is null. In this case the fill uses a solid color based on the value of ShapePath.fillColor.

When set, ShapePath.fillColor is ignored and filling is done using one of the ShapeGradient subtypes.

Note
The Gradient type cannot be used here. Rather, prefer using one of the advanced subtypes, like LinearGradient.

Definition at line 487 of file qquickshape.cpp.

References d.

◆ fillRule()

QQuickShapePath::FillRule QQuickShapePath::fillRule ( ) const

\qmlproperty enumeration QtQuick.Shapes::ShapePath::fillRule

This property holds the fill rule. The default value is ShapePath.OddEvenFill. For an explanation on fill rules, see QPainterPath::setFillRule().

\value ShapePath.OddEvenFill Odd-even fill rule.

\value ShapePath.WindingFill Non-zero winding fill rule.

Definition at line 276 of file qquickshape.cpp.

References d.

◆ fillRuleChanged

void QQuickShapePath::fillRuleChanged ( )
signal

Referenced by setFillRule().

+ Here is the caller graph for this function:

◆ joinStyle()

QQuickShapePath::JoinStyle QQuickShapePath::joinStyle ( ) const

\qmlproperty enumeration QtQuick.Shapes::ShapePath::joinStyle

This property defines how joins between two connected lines are drawn. The default value is ShapePath.BevelJoin.

\value ShapePath.MiterJoin The outer edges of the lines are extended to meet at an angle, and this area is filled.

\value ShapePath.BevelJoin The triangular notch between the two lines is filled.

\value ShapePath.RoundJoin A circular arc between the two lines is filled.

Definition at line 310 of file qquickshape.cpp.

References d.

◆ joinStyleChanged

void QQuickShapePath::joinStyleChanged ( )
signal

Referenced by setJoinStyle().

+ Here is the caller graph for this function:

◆ miterLimit()

int QQuickShapePath::miterLimit ( ) const

\qmlproperty int QtQuick.Shapes::ShapePath::miterLimit

When joinStyle is set to ShapePath.MiterJoin, this property specifies how far the miter join can extend from the join point.

The default value is 2.

Definition at line 336 of file qquickshape.cpp.

References d.

◆ miterLimitChanged

void QQuickShapePath::miterLimitChanged ( )
signal

Referenced by setMiterLimit().

+ Here is the caller graph for this function:

◆ pathHints()

QQuickShapePath::PathHints QQuickShapePath::pathHints ( ) const

\qmlproperty PathHints QtQuick.Shapes::ShapePath::pathHints

Since
6.7

This property describes characteristics of the shape. If set, these hints may allow optimized rendering. By default, no hints are set. It can be a combination of the following values:

\value ShapePath.PathLinear The path only has straight lines, no curves. \value ShapePath.PathQuadratic The path does not have any cubic curves: only lines and quadratic Bezier curves. \value ShapePath.PathConvex The path does not have any dents or holes. All straight lines between two points inside the shape will be completely inside the shape. \value ShapePath.PathFillOnRight The path follows the TrueType convention where outlines around solid fill have their control points ordered clockwise, and outlines around holes in the shape have their control points ordered counter-clockwise. \value ShapePath.PathSolid The path has no holes, or mathematically speaking it is {simply connected}. \value ShapePath.PathNonIntersecting The path outline does not cross itself. \value ShapePath.PathNonOverlappingControlPointTriangles The triangles defined by the curve control points do not overlap with each other, or with any of the line segments. Also, no line segments intersect. This implies PathNonIntersecting.

Not all hints are logically independent, but the dependencies are not enforced. For example, PathIsLinear implies PathIsQuadratic, but it is valid to have PathIsLinear without PathIsQuadratic.

The pathHints property describes a set of statements known to be true; the absence of a hint does not necessarily mean that the corresponding statement is false.

Definition at line 557 of file qquickshape.cpp.

References d.

◆ Q_REVISION

QQuickShapePath::Q_REVISION ( 6 ,
7  )
signal

◆ resetFillGradient()

void QQuickShapePath::resetFillGradient ( )

Definition at line 516 of file qquickshape.cpp.

References setFillGradient().

+ Here is the call graph for this function:

◆ setCapStyle()

void QQuickShapePath::setCapStyle ( CapStyle style)

Definition at line 376 of file qquickshape.cpp.

References capStyleChanged(), d, QQuickShapePathPrivate::DirtyStyle, emit, and shapePathChanged().

+ Here is the call graph for this function:

◆ setDashOffset()

void QQuickShapePath::setDashOffset ( qreal offset)

Definition at line 431 of file qquickshape.cpp.

References d, dashOffsetChanged(), QQuickShapePathPrivate::DirtyDash, emit, and shapePathChanged().

+ Here is the call graph for this function:

◆ setDashPattern()

void QQuickShapePath::setDashPattern ( const QVector< qreal > & array)

Definition at line 462 of file qquickshape.cpp.

References d, dashPatternChanged(), QQuickShapePathPrivate::DirtyDash, emit, and shapePathChanged().

+ Here is the call graph for this function:

◆ setFillColor()

void QQuickShapePath::setFillColor ( const QColor & color)

Definition at line 251 of file qquickshape.cpp.

References d, QQuickShapePathPrivate::DirtyFillColor, emit, fillColorChanged(), and shapePathChanged().

Referenced by QDeclarativeCircleMapItemPrivateCPU::updatePolish(), QDeclarativePolygonMapItemPrivateCPU::updatePolish(), QDeclarativePolylineMapItemPrivateCPU::updatePolish(), and QDeclarativeRectangleMapItemPrivateCPU::updatePolish().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFillGradient()

void QQuickShapePath::setFillGradient ( QQuickShapeGradient * gradient)

Definition at line 493 of file qquickshape.cpp.

References d, QQuickShapePathPrivate::DirtyFillGradient, emit, qmlobject_connect, qmlobject_disconnect, shapePathChanged(), SIGNAL, and SLOT.

Referenced by resetFillGradient().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFillRule()

void QQuickShapePath::setFillRule ( FillRule fillRule)

Definition at line 282 of file qquickshape.cpp.

References d, QQuickShapePathPrivate::DirtyFillRule, emit, fillRule, fillRuleChanged(), and shapePathChanged().

+ Here is the call graph for this function:

◆ setJoinStyle()

void QQuickShapePath::setJoinStyle ( JoinStyle style)

Definition at line 316 of file qquickshape.cpp.

References d, QQuickShapePathPrivate::DirtyStyle, emit, joinStyleChanged(), and shapePathChanged().

+ Here is the call graph for this function:

◆ setMiterLimit()

void QQuickShapePath::setMiterLimit ( int limit)

Definition at line 342 of file qquickshape.cpp.

References d, QQuickShapePathPrivate::DirtyStyle, emit, miterLimitChanged(), and shapePathChanged().

+ Here is the call graph for this function:

◆ setPathHints()

void QQuickShapePath::setPathHints ( PathHints newPathHints)

Definition at line 563 of file qquickshape.cpp.

References d, and emit.

◆ setStrokeColor()

void QQuickShapePath::setStrokeColor ( const QColor & color)

Definition at line 197 of file qquickshape.cpp.

References d, QQuickShapePathPrivate::DirtyStrokeColor, emit, shapePathChanged(), and strokeColorChanged().

Referenced by QDeclarativeCircleMapItemPrivateCPU::updatePolish(), QDeclarativePolygonMapItemPrivateCPU::updatePolish(), QDeclarativePolylineMapItemPrivateCPU::updatePolish(), and QDeclarativeRectangleMapItemPrivateCPU::updatePolish().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setStrokeStyle()

void QQuickShapePath::setStrokeStyle ( StrokeStyle style)

Definition at line 403 of file qquickshape.cpp.

References d, QQuickShapePathPrivate::DirtyDash, emit, shapePathChanged(), and strokeStyleChanged().

+ Here is the call graph for this function:

◆ setStrokeWidth()

void QQuickShapePath::setStrokeWidth ( qreal w)

Definition at line 224 of file qquickshape.cpp.

References d, QQuickShapePathPrivate::DirtyStrokeWidth, emit, shapePathChanged(), and strokeWidthChanged().

Referenced by QDeclarativeCircleMapItemPrivateCPU::updatePolish(), QDeclarativePolygonMapItemPrivateCPU::updatePolish(), QDeclarativePolylineMapItemPrivateCPU::updatePolish(), and QDeclarativeRectangleMapItemPrivateCPU::updatePolish().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shapePathChanged

void QQuickShapePath::shapePathChanged ( )
signal

Referenced by QQuickShapePath(), setCapStyle(), setDashOffset(), setDashPattern(), setFillColor(), setFillGradient(), setFillRule(), setJoinStyle(), setMiterLimit(), setStrokeColor(), setStrokeStyle(), and setStrokeWidth().

+ Here is the caller graph for this function:

◆ strokeColor()

QColor QQuickShapePath::strokeColor ( ) const

\qmlproperty color QtQuick.Shapes::ShapePath::strokeColor

This property holds the stroking color.

When set to transparent, no stroking occurs.

The default value is white.

Definition at line 191 of file qquickshape.cpp.

References d.

◆ strokeColorChanged

void QQuickShapePath::strokeColorChanged ( )
signal

Referenced by setStrokeColor().

+ Here is the caller graph for this function:

◆ strokeStyle()

QQuickShapePath::StrokeStyle QQuickShapePath::strokeStyle ( ) const

\qmlproperty enumeration QtQuick.Shapes::ShapePath::strokeStyle

This property defines the style of stroking. The default value is ShapePath.SolidLine.

\value ShapePath.SolidLine A plain line. \value ShapePath.DashLine Dashes separated by a few pixels.

Definition at line 397 of file qquickshape.cpp.

References d.

◆ strokeStyleChanged

void QQuickShapePath::strokeStyleChanged ( )
signal

Referenced by setStrokeStyle().

+ Here is the caller graph for this function:

◆ strokeWidth()

qreal QQuickShapePath::strokeWidth ( ) const

\qmlproperty real QtQuick.Shapes::ShapePath::strokeWidth

This property holds the stroke width.

When set to a negative value, no stroking occurs.

The default value is 1.

Definition at line 218 of file qquickshape.cpp.

References d.

◆ strokeWidthChanged

void QQuickShapePath::strokeWidthChanged ( )
signal

Referenced by setStrokeWidth().

+ Here is the caller graph for this function:

Property Documentation

◆ capStyle

CapStyle QQuickShapePath::capStyle
readwrite

Definition at line 193 of file qquickshape_p.h.

◆ dashOffset

qreal QQuickShapePath::dashOffset
readwrite

Definition at line 195 of file qquickshape_p.h.

◆ dashPattern

QVector<qreal> QQuickShapePath::dashPattern
readwrite

Definition at line 196 of file qquickshape_p.h.

◆ fillColor

QColor QQuickShapePath::fillColor
readwrite

Definition at line 189 of file qquickshape_p.h.

◆ fillGradient

QQuickShapeGradient * QQuickShapePath::fillGradient
readwrite

Definition at line 197 of file qquickshape_p.h.

◆ fillRule

FillRule QQuickShapePath::fillRule
readwrite

Definition at line 190 of file qquickshape_p.h.

Referenced by setFillRule().

◆ joinStyle

JoinStyle QQuickShapePath::joinStyle
readwrite

Definition at line 191 of file qquickshape_p.h.

◆ miterLimit

int QQuickShapePath::miterLimit
readwrite

Definition at line 192 of file qquickshape_p.h.

◆ pathHints

PathHints QQuickShapePath::pathHints
readwrite

Definition at line 199 of file qquickshape_p.h.

◆ scale

QSizeF QQuickShapePath::scale
readwrite

Definition at line 198 of file qquickshape_p.h.

◆ strokeColor

QColor QQuickShapePath::strokeColor
readwrite

Definition at line 187 of file qquickshape_p.h.

◆ strokeStyle

StrokeStyle QQuickShapePath::strokeStyle
readwrite

Definition at line 194 of file qquickshape_p.h.

◆ strokeWidth

qreal QQuickShapePath::strokeWidth
readwrite

Definition at line 188 of file qquickshape_p.h.


The documentation for this class was generated from the following files: