35 QDomElement
rectToElmt(
const QRectF &rect, QDomDocument &parent_document);
38 void yToAttribute(
const qreal &y, QDomElement &xml_element);
39 qreal
yFromAttribute(
const QDomElement &xml_element,
const qreal &def_value=0);
44 void rToAttribute(
const qreal &r, QDomElement &xml_element);
45 qreal
rFromAttribute(
const QDomElement &xml_element,
const qreal &def_value=1);
the QETSVG namespace provide function read and write svg. Some function work on xml element (ex rect)...
void yToAttribute(const qreal &y, QDomElement &xml_element)
QETSVG::yToAttribute.
Definition qetsvg.cpp:67
void rToAttribute(const qreal &r, QDomElement &xml_element)
Definition qetsvg.cpp:102
qreal yFromAttribute(const QDomElement &xml_element, const qreal &def_value=0)
QETSVG::yFromAttribute.
Definition qetsvg.cpp:77
QDomElement rectToElmt(const QRectF &rect, QDomDocument &parent_document)
QETSVG::rectToElmt Write a QRect as a svg rect element.
Definition qetsvg.cpp:32
void pointsToAttribute(const QVector< QPointF > &points, QDomElement &xml_element)
Definition qetsvg.cpp:115
void heightToAttribute(const qreal &height, QDomElement &xml_element)
QETSVG::heightToAttribute.
Definition qetsvg.cpp:90
QVector< QPointF > pointsFromAttribute(const QDomElement &xml_element)
QETSVG::pointsFromAttribute.
Definition qetsvg.cpp:133
QRectF rectFromElmt(const QDomElement &xml_element)
QETSVG::rectFromElmt.
Definition qetsvg.cpp:50
qreal rFromAttribute(const QDomElement &xml_element, const qreal &def_value=1)
Definition qetsvg.cpp:106
qreal heightFromAttribute(const QDomElement &xml_element, const qreal &def_value=10)
Definition qetsvg.cpp:94