QMarginsF Class
The QMarginsF class defines the four margins of a rectangle. More...
| Header: | #include <QMarginsF> |
| qmake: | QT += core |
| Since: | Qt 5.3 |
Public Functions
| QMarginsF & | operator/=(qreal divisor) |
Related Non-Members
| QDataStream & | operator<<(QDataStream &stream, const QMarginsF &m) |
| QDataStream & | operator>>(QDataStream &stream, QMarginsF &m) |
Detailed Description
The QMarginsF class defines the four margins of a rectangle.
QMarginsF defines a set of four margins; left, top, right and bottom, that describe the size of the borders surrounding a rectangle.
The isNull() function returns true only if all margins are very close to zero.
QMarginsF objects can be streamed as well as compared.
Member Function Documentation
QMarginsF &QMarginsF::operator/=(qreal divisor)
Divides each component of this object by divisor and returns a reference to it.
See also operator*=().
Related Non-Members
QDataStream &operator<<(QDataStream &stream, const QMarginsF &m)
Writes margin m to the given stream and returns a reference to the stream.
See also Serializing Qt Data Types.
QDataStream &operator>>(QDataStream &stream, QMarginsF &m)
Reads a margin from the given stream into margin m and returns a reference to the stream.
See also Serializing Qt Data Types.