![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquickshape_p.h>
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< qreal > | dashPattern () const |
void | setDashPattern (const QVector< qreal > &array) |
QQuickShapeGradient * | fillGradient () 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) |
QQuickItem * | fillItem () const |
\qmlproperty Item QtQuick.Shapes::ShapePath::fillItem | |
void | setFillItem (QQuickItem *newFillItem) |
QQuickShapeTrim * | trim () |
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< QQuickPathElement > | pathElements () |
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< QString > | bindableObjectName () |
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). | |
QThread * | thread () 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> | |
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> | |
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 QObjectList & | children () 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< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () 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< qreal > | dashPattern |
QQuickShapeGradient * | fillGradient |
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< QQuickPathElement > | pathElements |
\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 | |
QObject * | sender () 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 QQuickPathElement * | pathElements_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< QObjectData > | d_ptr |
Related Symbols inherited from QObject | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) |
Definition at line 215 of file qquickshape_p.h.
Enumerator | |
---|---|
FlatCap | |
SquareCap | |
RoundCap |
Definition at line 253 of file qquickshape_p.h.
Enumerator | |
---|---|
OddEvenFill | |
WindingFill |
Definition at line 240 of file qquickshape_p.h.
Enumerator | |
---|---|
MiterJoin | |
BevelJoin | |
RoundJoin |
Definition at line 246 of file qquickshape_p.h.
Enumerator | |
---|---|
PathLinear | |
PathQuadratic | |
PathConvex | |
PathFillOnRight | |
PathSolid | |
PathNonIntersecting | |
PathNonOverlappingControlPointTriangles |
Definition at line 266 of file qquickshape_p.h.
Enumerator | |
---|---|
SolidLine | |
DashLine |
Definition at line 260 of file qquickshape_p.h.
QQuickShapePath::QQuickShapePath | ( | QObject * | parent = nullptr | ) |
Definition at line 167 of file qquickshape.cpp.
QQuickShapePath::~QQuickShapePath | ( | ) |
Definition at line 182 of file qquickshape.cpp.
QQuickShapePath::CapStyle QQuickShapePath::capStyle | ( | ) | const |
{capStyle-property} {QtQuick.Shapes::ShapePath}
Definition at line 375 of file qquickshape.cpp.
|
signal |
bool QQuickShapePath::cosmeticStroke | ( | ) | const |
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
.
Definition at line 256 of file qquickshape.cpp.
qreal QQuickShapePath::dashOffset | ( | ) | const |
{dashOffset-property} {QtQuick.Shapes::ShapePath}
Definition at line 417 of file qquickshape.cpp.
|
signal |
{dashPattern-property} {QtQuick.Shapes::ShapePath}
Definition at line 438 of file qquickshape.cpp.
|
signal |
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
.
null
, these will take precedence over fillColor
. The fillColor
will be ignored in this case. Definition at line 286 of file qquickshape.cpp.
|
signal |
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.
{null}, the fillGradient
will take precedence over both \l fillItem and \l fillColor. Definition at line 469 of file qquickshape.cpp.
QQuickItem * QQuickShapePath::fillItem | ( | ) | const |
\qmlproperty Item QtQuick.Shapes::ShapePath::fillItem
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.
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
.
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.
QQuickShapePath::FillRule QQuickShapePath::fillRule | ( | ) | const |
{fillRule-property} {QtQuick.Shapes::ShapePath}
Definition at line 307 of file qquickshape.cpp.
|
signal |
QMatrix4x4 QQuickShapePath::fillTransform | ( | ) | const |
\qmlproperty matrix4x4 QtQuick.Shapes::ShapePath::fillTransform
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.
bool QQuickShapePath::hasTrim | ( | ) | const |
Definition at line 592 of file qquickshape.cpp.
QQuickShapePath::JoinStyle QQuickShapePath::joinStyle | ( | ) | const |
{joinStyle-property} {QtQuick.Shapes::ShapePath}
Definition at line 328 of file qquickshape.cpp.
|
signal |
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.
|
signal |
QQuickShapePath::PathHints QQuickShapePath::pathHints | ( | ) | const |
\qmlproperty PathHints QtQuick.Shapes::ShapePath::pathHints
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.
|
signal |
|
signal |
|
signal |
|
signal |
void QQuickShapePath::resetFillGradient | ( | ) |
Definition at line 491 of file qquickshape.cpp.
Definition at line 381 of file qquickshape.cpp.
void QQuickShapePath::setCosmeticStroke | ( | bool | c | ) |
Definition at line 262 of file qquickshape.cpp.
Definition at line 423 of file qquickshape.cpp.
Definition at line 444 of file qquickshape.cpp.
Definition at line 292 of file qquickshape.cpp.
void QQuickShapePath::setFillGradient | ( | QQuickShapeGradient * | gradient | ) |
Definition at line 475 of file qquickshape.cpp.
void QQuickShapePath::setFillItem | ( | QQuickItem * | newFillItem | ) |
Definition at line 544 of file qquickshape.cpp.
Definition at line 313 of file qquickshape.cpp.
void QQuickShapePath::setFillTransform | ( | const QMatrix4x4 & | matrix | ) |
Definition at line 695 of file qquickshape.cpp.
Definition at line 334 of file qquickshape.cpp.
void QQuickShapePath::setMiterLimit | ( | int | limit | ) |
Definition at line 360 of file qquickshape.cpp.
void QQuickShapePath::setPathHints | ( | PathHints | newPathHints | ) |
Definition at line 660 of file qquickshape.cpp.
Definition at line 202 of file qquickshape.cpp.
void QQuickShapePath::setStrokeStyle | ( | StrokeStyle | style | ) |
Definition at line 402 of file qquickshape.cpp.
Definition at line 231 of file qquickshape.cpp.
|
signal |
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.
|
signal |
QQuickShapePath::StrokeStyle QQuickShapePath::strokeStyle | ( | ) | const |
{strokeStyle-property} {QtQuick.Shapes::ShapePath}
Definition at line 396 of file qquickshape.cpp.
|
signal |
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 225 of file qquickshape.cpp.
|
signal |
QQuickShapeTrim * QQuickShapePath::trim | ( | ) |
|
readwrite |
Definition at line 225 of file qquickshape_p.h.
|
readwrite |
Definition at line 235 of file qquickshape_p.h.
|
readwrite |
Definition at line 227 of file qquickshape_p.h.
Definition at line 228 of file qquickshape_p.h.
|
readwrite |
Definition at line 221 of file qquickshape_p.h.
|
readwrite |
Definition at line 229 of file qquickshape_p.h.
|
readwrite |
Definition at line 233 of file qquickshape_p.h.
|
readwrite |
Definition at line 222 of file qquickshape_p.h.
|
readwrite |
Definition at line 232 of file qquickshape_p.h.
|
readwrite |
Definition at line 223 of file qquickshape_p.h.
|
readwrite |
Definition at line 224 of file qquickshape_p.h.
|
readwrite |
Definition at line 231 of file qquickshape_p.h.
|
readwrite |
Definition at line 230 of file qquickshape_p.h.
|
readwrite |
Definition at line 219 of file qquickshape_p.h.
|
readwrite |
Definition at line 226 of file qquickshape_p.h.
|
readwrite |
Definition at line 220 of file qquickshape_p.h.
|
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
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.