Auf dieser Seite

QPainterPath::Element Class

class QPainterPath::Element

Die Klasse „ QPainterPath::Element “ legt die Position und den Typ eines Teilpfads fest. Mehr...

Öffentliche Funktionen

bool isCurveTo() const
bool isLineTo() const
bool isMoveTo() const
operator QPointF() const
bool operator!=(const QPainterPath::Element &other) const
bool operator==(const QPainterPath::Element &other) const

Öffentliche Variablen

QPainterPath::ElementType type
qreal x
qreal y

Ausführliche Beschreibung

Sobald ein „ QPainterPath “-Objekt erstellt wurde, können dem Pfad Teilpfade wie Linien und Kurven hinzugefügt werden (wodurch die Komponenten „ QPainterPath::LineToElement “ und „ QPainterPath::CurveToElement “ erstellt werden).

Die Linien und Kurven erstrecken sich vom „ currentPosition “ () bis zu der als Argument übergebenen Position. Die „ currentPosition “ () des „ QPainterPath “-Objekts ist immer die Endposition des zuletzt hinzugefügten Teilpfads (oder der ursprüngliche Startpunkt). Mit der Funktion „ moveTo “ () kann das „ currentPosition “ () verschoben werden, ohne eine Linie oder Kurve hinzuzufügen, wodurch eine „ QPainterPath::MoveToElement “-Komponente entsteht.

Siehe auch „ QPainterPath “.

Dokumentation zu den Member-Funktionen

bool Element::isCurveTo() const

Gibt „ true “ zurück, wenn es sich bei dem Element um eine Kurve handelt, andernfalls „ false “.

Siehe auch „ type “ und „ QPainterPath::CurveToElement “.

bool Element::isLineTo() const

Gibt „ true “ zurück, wenn das Element eine Zeile ist, andernfalls „ false “.

Siehe auch „ type “ und „ QPainterPath::LineToElement “.

bool Element::isMoveTo() const

Gibt „ true “ zurück, wenn sich das Element an der aktuellen Position bewegt, andernfalls „ false “.

Siehe auch „ type “ und „ QPainterPath::MoveToElement “.

Element::operator QPointF() const

Gibt die Position des Elements zurück.

Siehe auch x und y.

bool Element::operator!=(const QPainterPath::Element &other) const

Gibt „ true “ zurück, wenn dieses Element nicht gleich „ other “ ist; andernfalls wird „ false “ zurückgegeben.

Siehe auch „ operator==()“.

bool Element::operator==(const QPainterPath::Element &other) const

Gibt „ true “ zurück, wenn dieses Element gleich „ other “ ist; andernfalls wird „ false “ zurückgegeben.

Siehe auch operator!=().

Dokumentation zu Mitgliedsvariablen

QPainterPath::ElementType Element::type

Diese Variable enthält den Elementtyp

Siehe auch isCurveTo(), isLineTo() und isMoveTo().

qreal Element::x

Diese Variable enthält die x-Koordinate der Position des Elements.

Siehe auch „ operator QPointF() “.

qreal Element::y

Diese Variable enthält die y-Koordinate der Position des Elements.

Siehe auch „ operator QPointF() “.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.