
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQPainterPath::Element class specifies the position and type of a subpath.More...
| Header: | #include <Element> |
| bool | isCurveTo() const |
| bool | isLineTo() const |
| bool | isMoveTo() const |
| operator QPointF() const | |
| bool | operator!=(const Element & other) const |
| bool | operator==(const Element & other) const |
TheQPainterPath::Element class specifies the position and type of a subpath.
Once aQPainterPath object is constructed, subpaths like lines and curves can be added to the path (creatingQPainterPath::LineToElement andQPainterPath::CurveToElement components).
The lines and curves stretch from thecurrentPosition() to the position passed as argument. ThecurrentPosition() of theQPainterPath object is always the end position of the last subpath that was added (or the initial start point). ThemoveTo() function can be used to move thecurrentPosition() without adding a line or curve, creating aQPainterPath::MoveToElement component.
See alsoQPainterPath.
Returns true if the element is a curve, otherwise returns false.
See alsotype andQPainterPath::CurveToElement.
Returns true if the element is a line, otherwise returns false.
See alsotype andQPainterPath::LineToElement.
Returns true if the element is moving the current position, otherwise returns false.
See alsotype andQPainterPath::MoveToElement.
Returns the element's position.
Returns true if this element is not equal toother; otherwise returns false.
This function was introduced in Qt 4.2.
See alsooperator==().
Returns true if this element is equal toother; otherwise returns false.
This function was introduced in Qt 4.2.
See alsooperator!=().
This variable holds the type of element.
See alsoisCurveTo(),isLineTo(), andisMoveTo().
This variable holds the x coordinate of the element's position.
See alsooperator QPointF().
This variable holds the y coordinate of the element's position.
See alsooperator QPointF().
© 2016 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 theGNU 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.