Element Class
class QPainterPath::ElementDie Klasse QPainterPath::Element spezifiziert die Position und den Typ eines Unterwegs. Mehr...
Öffentliche Funktionen
bool | isCurveTo() const |
bool | isLineTo() const |
bool | isMoveTo() const |
QPointF | operator QPointF() const |
bool | operator!=(const QPainterPath::Element &other) const |
bool | operator==(const QPainterPath::Element &other) const |
Öffentliche Variablen
Detaillierte Beschreibung
Sobald ein QPainterPath Objekt konstruiert ist, können Unterpfade wie Linien und Kurven zu dem Pfad hinzugefügt werden (indem QPainterPath::LineToElement und QPainterPath::CurveToElement Komponenten 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 Unterpfads (oder der anfängliche Startpunkt). Die Funktion moveTo() kann verwendet werden, um currentPosition() zu verschieben, ohne eine Linie oder Kurve hinzuzufügen, wodurch eine QPainterPath::MoveToElement Komponente entsteht.
Siehe auch QPainterPath.
Dokumentation der Mitgliedsfunktionen
bool Element::isCurveTo() const
Gibt true
zurück, wenn das Element eine Kurve ist, andernfalls wird false
zurückgegeben.
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 wird false
zurückgegeben.
Siehe auch type und QPainterPath::MoveToElement.
QPointF Element::operator QPointF() const
Gibt die Position des Elements zurück.
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 der Mitgliedsvariablen
QPainterPath::ElementType Element::type
Diese Variable enthält den Typ des Elements
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().
© 2025 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.