Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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()
 Q_REVISION (6, 8) void fillTransformChanged()
 Q_REVISION (6, 8) void fillItemChanged()
 Q_REVISION (6, 11) void cosmeticStrokeChanged()
Signals inherited from QQuickPath
void changed ()
void startXChanged ()
void startYChanged ()
 Q_REVISION (6, 6) void simplifyChanged()
 Q_REVISION (2, 14) void scaleChanged()
 Q_REVISION (6, 9) void asynchronousChanged()
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
void setFillRule (FillRule fillRule)
JoinStyle joinStyle () const
void setJoinStyle (JoinStyle style)
int miterLimit () const
 \qmlproperty int QtQuick.Shapes::ShapePath::miterLimit
void setMiterLimit (int limit)
CapStyle capStyle () const
void setCapStyle (CapStyle style)
StrokeStyle strokeStyle () const
void setStrokeStyle (StrokeStyle style)
qreal dashOffset () const
void setDashOffset (qreal offset)
QVector< qrealdashPattern () const
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)
QMatrix4x4 fillTransform () const
 \qmlproperty matrix4x4 QtQuick.Shapes::ShapePath::fillTransform
void setFillTransform (const QMatrix4x4 &matrix)
QQuickItemfillItem () const
 \qmlproperty Item QtQuick.Shapes::ShapePath::fillItem
void setFillItem (QQuickItem *newFillItem)
QQuickShapeTrimtrim ()
bool hasTrim () const
bool cosmeticStroke () const
void setCosmeticStroke (bool c)
Public Member Functions inherited from QQuickPath
 QQuickPath (QObject *parent=nullptr)
 \qmltype PathElement \nativetype 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
void setPath (const QPainterPath &path)
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
bool isAsynchronous () const
 \qmlproperty bool QtQuick::Path::asynchronous
void setAsynchronous (bool a)
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 isQmlObjectType () const
 Returns whether the object has been created by the QML engine or ownership has been explicitly set via QJSEngine::setObjectOwnership().
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
FINALQMatrix4x4 fillTransform
FINALQQuickItem * fillItem
FINALQQuickShapeTrim * trim
 \qmlpropertygroup QtQuick.Shapes::ShapePath::trim \qmlproperty real QtQuick.Shapes::ShapePath::trim.start \qmlproperty real QtQuick.Shapes::ShapePath::trim.stop \qmlproperty real QtQuick.Shapes::ShapePath::trim.offset
FINALbool cosmeticStroke
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
bool asynchronous
Properties inherited from QObject
QString objectName
 the name of this object

Additional Inherited Members

Public Slots inherited from QQuickPath
void processPath ()
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 > *)
static void pathElements_replace (QQmlListProperty< QQuickPathElement > *, qsizetype, QQuickPathElement *)
static void pathElements_removeLast (QQmlListProperty< QQuickPathElement > *)
Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr

Detailed Description

Definition at line 215 of file qquickshape_p.h.

Member Enumeration Documentation

◆ CapStyle

Enumerator
FlatCap 
SquareCap 
RoundCap 

Definition at line 253 of file qquickshape_p.h.

◆ FillRule

Enumerator
OddEvenFill 
WindingFill 

Definition at line 240 of file qquickshape_p.h.

◆ JoinStyle

Enumerator
MiterJoin 
BevelJoin 
RoundJoin 

Definition at line 246 of file qquickshape_p.h.

◆ PathHint

Enumerator
PathLinear 
PathQuadratic 
PathConvex 
PathFillOnRight 
PathSolid 
PathNonIntersecting 
PathNonOverlappingControlPointTriangles 

Definition at line 266 of file qquickshape_p.h.

◆ StrokeStyle

Enumerator
SolidLine 
DashLine 

Definition at line 260 of file qquickshape_p.h.

Constructor & Destructor Documentation

◆ QQuickShapePath()

QQuickShapePath::QQuickShapePath ( QObject * parent = nullptr)

Definition at line 167 of file qquickshape.cpp.

◆ ~QQuickShapePath()

QQuickShapePath::~QQuickShapePath ( )

Definition at line 182 of file qquickshape.cpp.

Member Function Documentation

◆ capStyle()

QQuickShapePath::CapStyle QQuickShapePath::capStyle ( ) const

{capStyle-property} {QtQuick.Shapes::ShapePath}

Definition at line 375 of file qquickshape.cpp.

◆ capStyleChanged

void QQuickShapePath::capStyleChanged ( )
signal

◆ cosmeticStroke()

bool QQuickShapePath::cosmeticStroke ( ) const
Since
6.11 \qmlproperty real QtQuick.Shapes::ShapePath::cosmeticStroke

This property holds whether the stroke width remains constant despite rendering scale.

When this property is set to true, the outline of the shape is drawn with constant width in \l {High DPI}{device-independent pixels}, as specified by \l strokeWidth, regardless of any transformations applied to the shape, such as \l QtQuick::Item::scale.

The default value is false.

See also
strokeWidth

Definition at line 256 of file qquickshape.cpp.

◆ dashOffset()

qreal QQuickShapePath::dashOffset ( ) const

{dashOffset-property} {QtQuick.Shapes::ShapePath}

Definition at line 417 of file qquickshape.cpp.

◆ dashOffsetChanged

void QQuickShapePath::dashOffsetChanged ( )
signal

◆ dashPattern()

QVector< qreal > QQuickShapePath::dashPattern ( ) const

{dashPattern-property} {QtQuick.Shapes::ShapePath}

Definition at line 438 of file qquickshape.cpp.

◆ dashPatternChanged

void QQuickShapePath::dashPatternChanged ( )
signal

◆ 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.

Note
If either \l fillGradient or \l fillItem are set to something other than null, these will take precedence over fillColor. The fillColor will be ignored in this case.

Definition at line 286 of file qquickshape.cpp.

◆ fillColorChanged

void QQuickShapePath::fillColorChanged ( )
signal

◆ 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 will either be based on the \l fillItem property if it is set, and otherwise the \l{fillColor} property will be used.

Note
The Gradient type cannot be used here. Rather, prefer using one of the advanced subtypes, like LinearGradient.
If set to something other than {null}, the fillGradient will take precedence over both \l fillItem and \l fillColor.

Definition at line 469 of file qquickshape.cpp.

◆ fillItem()

QQuickItem * QQuickShapePath::fillItem ( ) const

\qmlproperty Item QtQuick.Shapes::ShapePath::fillItem

Since
6.8

This property defines another Qt Quick Item to use as fill by the shape. The item must be texture provider (such as a \l {Item Layers} {layered item}, a \l{ShaderEffectSource} or an \l{Image}). If it is not a valid texture provider, this property will be ignored.

The visual parent of fillItem must be a Qt Quick \l{Item}. In particular, since {ShapePath} is not an \l{Item}, its children cannot be used as fill items. Manually setting the {fillItem}'s parent is needed when it is created as a child of the {ShapePath}.

For instance, creating an \l{Image} object directly in the {fillItem} property assignment will make it a child of the {ShapePath}. In this case, its parent must be set manually. In the following example we use the window's \l{Window::contentItem}{contentItem} as the parent.

visible: false
source: "contents.png"
parent: window.contentItem
}
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:349
FINALQQuickItem * fillItem
GLsizei GLsizei GLchar * source
aWidget window() -> setWindowTitle("New Window Title")
[2]
Note
When using a layered item as a fillItem, you may see pixelation effects when transforming the fill. Setting the \l {QtQuick::Item::}{layer.smooth} property to true will give better visual results in this case.

By default no fill item is set and the value is null.

Note
If set to something other than null, the fillItem property takes precedence over \l fillColor. The \l fillGradient property in turn takes precedence over both fillItem and \l{fillColor}.

Definition at line 538 of file qquickshape.cpp.

◆ fillRule()

QQuickShapePath::FillRule QQuickShapePath::fillRule ( ) const

{fillRule-property} {QtQuick.Shapes::ShapePath}

Definition at line 307 of file qquickshape.cpp.

◆ fillRuleChanged

void QQuickShapePath::fillRuleChanged ( )
signal

◆ fillTransform()

QMatrix4x4 QQuickShapePath::fillTransform ( ) const

\qmlproperty matrix4x4 QtQuick.Shapes::ShapePath::fillTransform

Since
6.8

This property defines a transform to be applied to the path's fill pattern (\l fillGradient or \l fillItem). It has no effect if the fill is a solid color or transparent. By default no fill transform is enabled and the value of this property is the identity matrix.

This example displays a rectangle filled with the contents of myImageItem rotated 45 degrees around the center point of myShape:

\qml ShapePath { fillItem: myImageItem fillTransform: PlanarTransform.fromRotate(45, myShape.width / 2, myShape.height / 2) PathRectangle { x: 10; y: 10; width: myShape.width - 20; height: myShape.height - 20 } } \endqml

Definition at line 689 of file qquickshape.cpp.

◆ hasTrim()

bool QQuickShapePath::hasTrim ( ) const

Definition at line 592 of file qquickshape.cpp.

◆ joinStyle()

QQuickShapePath::JoinStyle QQuickShapePath::joinStyle ( ) const

{joinStyle-property} {QtQuick.Shapes::ShapePath}

Definition at line 328 of file qquickshape.cpp.

◆ joinStyleChanged

void QQuickShapePath::joinStyleChanged ( )
signal

◆ 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 354 of file qquickshape.cpp.

◆ miterLimitChanged

void QQuickShapePath::miterLimitChanged ( )
signal

◆ 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, PathLinear implies PathQuadratic, but it is valid to have PathLinear without PathQuadratic.

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 654 of file qquickshape.cpp.

◆ Q_REVISION [1/4]

QQuickShapePath::Q_REVISION ( 6 ,
11  )
signal

◆ Q_REVISION [2/4]

QQuickShapePath::Q_REVISION ( 6 ,
7  )
signal

◆ Q_REVISION [3/4]

QQuickShapePath::Q_REVISION ( 6 ,
8  )
signal

◆ Q_REVISION [4/4]

QQuickShapePath::Q_REVISION ( 6 ,
8  )
signal

◆ resetFillGradient()

void QQuickShapePath::resetFillGradient ( )

Definition at line 491 of file qquickshape.cpp.

◆ setCapStyle()

void QQuickShapePath::setCapStyle ( CapStyle style)

Definition at line 381 of file qquickshape.cpp.

◆ setCosmeticStroke()

void QQuickShapePath::setCosmeticStroke ( bool c)

Definition at line 262 of file qquickshape.cpp.

◆ setDashOffset()

void QQuickShapePath::setDashOffset ( qreal offset)

Definition at line 423 of file qquickshape.cpp.

◆ setDashPattern()

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

Definition at line 444 of file qquickshape.cpp.

◆ setFillColor()

void QQuickShapePath::setFillColor ( const QColor & color)

Definition at line 292 of file qquickshape.cpp.

◆ setFillGradient()

void QQuickShapePath::setFillGradient ( QQuickShapeGradient * gradient)

Definition at line 475 of file qquickshape.cpp.

◆ setFillItem()

void QQuickShapePath::setFillItem ( QQuickItem * newFillItem)

Definition at line 544 of file qquickshape.cpp.

◆ setFillRule()

void QQuickShapePath::setFillRule ( FillRule fillRule)

Definition at line 313 of file qquickshape.cpp.

◆ setFillTransform()

void QQuickShapePath::setFillTransform ( const QMatrix4x4 & matrix)

Definition at line 695 of file qquickshape.cpp.

◆ setJoinStyle()

void QQuickShapePath::setJoinStyle ( JoinStyle style)

Definition at line 334 of file qquickshape.cpp.

◆ setMiterLimit()

void QQuickShapePath::setMiterLimit ( int limit)

Definition at line 360 of file qquickshape.cpp.

◆ setPathHints()

void QQuickShapePath::setPathHints ( PathHints newPathHints)

Definition at line 660 of file qquickshape.cpp.

◆ setStrokeColor()

void QQuickShapePath::setStrokeColor ( const QColor & color)

Definition at line 202 of file qquickshape.cpp.

◆ setStrokeStyle()

void QQuickShapePath::setStrokeStyle ( StrokeStyle style)

Definition at line 402 of file qquickshape.cpp.

◆ setStrokeWidth()

void QQuickShapePath::setStrokeWidth ( qreal w)

Definition at line 231 of file qquickshape.cpp.

◆ shapePathChanged

void QQuickShapePath::shapePathChanged ( )
signal

◆ 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 196 of file qquickshape.cpp.

◆ strokeColorChanged

void QQuickShapePath::strokeColorChanged ( )
signal

◆ strokeStyle()

QQuickShapePath::StrokeStyle QQuickShapePath::strokeStyle ( ) const

{strokeStyle-property} {QtQuick.Shapes::ShapePath}

Definition at line 396 of file qquickshape.cpp.

◆ strokeStyleChanged

void QQuickShapePath::strokeStyleChanged ( )
signal

◆ 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.

See also
cosmeticStroke

Definition at line 225 of file qquickshape.cpp.

◆ strokeWidthChanged

void QQuickShapePath::strokeWidthChanged ( )
signal

◆ trim()

QQuickShapeTrim * QQuickShapePath::trim ( )

Property Documentation

◆ capStyle

CapStyle QQuickShapePath::capStyle
readwrite

Definition at line 225 of file qquickshape_p.h.

◆ cosmeticStroke

FINALbool QQuickShapePath::cosmeticStroke
readwrite

Definition at line 235 of file qquickshape_p.h.

◆ dashOffset

qreal QQuickShapePath::dashOffset
readwrite

Definition at line 227 of file qquickshape_p.h.

◆ dashPattern

QVector<qreal> QQuickShapePath::dashPattern
readwrite

Definition at line 228 of file qquickshape_p.h.

◆ fillColor

QColor QQuickShapePath::fillColor
readwrite

Definition at line 221 of file qquickshape_p.h.

◆ fillGradient

QQuickShapeGradient * QQuickShapePath::fillGradient
readwrite

Definition at line 229 of file qquickshape_p.h.

◆ fillItem

FINALQQuickItem * QQuickShapePath::fillItem
readwrite

Definition at line 233 of file qquickshape_p.h.

◆ fillRule

FillRule QQuickShapePath::fillRule
readwrite

Definition at line 222 of file qquickshape_p.h.

◆ fillTransform

FINALQMatrix4x4 QQuickShapePath::fillTransform
readwrite

Definition at line 232 of file qquickshape_p.h.

◆ joinStyle

JoinStyle QQuickShapePath::joinStyle
readwrite

Definition at line 223 of file qquickshape_p.h.

◆ miterLimit

int QQuickShapePath::miterLimit
readwrite

Definition at line 224 of file qquickshape_p.h.

◆ pathHints

PathHints QQuickShapePath::pathHints
readwrite

Definition at line 231 of file qquickshape_p.h.

◆ scale

QSizeF QQuickShapePath::scale
readwrite

Definition at line 230 of file qquickshape_p.h.

◆ strokeColor

QColor QQuickShapePath::strokeColor
readwrite

Definition at line 219 of file qquickshape_p.h.

◆ strokeStyle

StrokeStyle QQuickShapePath::strokeStyle
readwrite

Definition at line 226 of file qquickshape_p.h.

◆ strokeWidth

qreal QQuickShapePath::strokeWidth
readwrite

Definition at line 220 of file qquickshape_p.h.

◆ trim

QQuickShapeTrim * QQuickShapePath::trim
read

\qmlpropertygroup QtQuick.Shapes::ShapePath::trim \qmlproperty real QtQuick.Shapes::ShapePath::trim.start \qmlproperty real QtQuick.Shapes::ShapePath::trim.stop \qmlproperty real QtQuick.Shapes::ShapePath::trim.offset

Since
6.10

Specifies the section of this path that will be displayed.

The section is defined by the path length fractions start and stop. By default, start is 0 (denoting the start of the path) and stop is 1 (denoting the end of the path), so the entire path is displayed.

The value of offset is added to start and stop. If that causes over- or underrun of the [0, 1] range, the values will be wrapped around, as will the resulting path section. The effective range of offset is between -1 and 1. The default value is 0.

Definition at line 234 of file qquickshape_p.h.


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