QPainterPath::Element Class
class QPainterPath::ElementLa classe ` QPainterPath::Element ` specifica la posizione e il tipo di un sottopercorso. Maggiori informazioni...
Funzioni pubbliche
| 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 |
Variabili pubbliche
Descrizione dettagliata
Una volta creato un oggetto QPainterPath, è possibile aggiungere al percorso sottopercorsi quali linee e curve (creando componenti QPainterPath::LineToElement e QPainterPath::CurveToElement ).
Le linee e le curve si estendono dall’ currentPosition() alla posizione passata come argomento. L’ currentPosition() dell’oggetto QPainterPath è sempre la posizione finale dell’ultimo sottopercorso aggiunto (o il punto iniziale). La funzione moveTo() può essere utilizzata per spostare l’ currentPosition() senza aggiungere una linea o una curva, creando un componente QPainterPath::MoveToElement.
Vedi anche QPainterPath.
Documentazione delle funzioni membro
bool Element::isCurveTo() const
Restituisce true se l'elemento è una curva, altrimenti restituisce false.
Vedi anche type e QPainterPath::CurveToElement.
bool Element::isLineTo() const
Restituisce true se l'elemento è una linea, altrimenti restituisce false.
Vedi anche type e QPainterPath::LineToElement.
bool Element::isMoveTo() const
Restituisce true se l'elemento si sta spostando dalla posizione corrente, altrimenti restituisce false.
Vedi anche type e QPainterPath::MoveToElement.
Element::operator QPointF() const
Restituisce la posizione dell'elemento.
bool Element::operator!=(const QPainterPath::Element &other) const
Restituisce true se questo elemento non è uguale a other; in caso contrario, restituisce false.
Vedi anche operator==().
bool Element::operator==(const QPainterPath::Element &other) const
Restituisce true se questo elemento è uguale a other; altrimenti restituisce false.
Vedi anche operator!=().
Documentazione sulle variabili membro
QPainterPath::ElementType Element::type
Questa variabile contiene il tipo dell'elemento
Vedi anche isCurveTo(), isLineTo() e isMoveTo().
qreal Element::x
Questa variabile contiene la coordinata x della posizione dell'elemento.
Vedi anche operator QPointF().
qreal Element::y
Questa variabile contiene la coordinata y della posizione dell'elemento.
Vedi anche 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.