QMarginsF Class

The QMarginsF class defines the four margins of a rectangle. More...

Header: #include <QMarginsF>
qmake: QT += core
Since: Qt 5.3

This class was introduced in Qt 5.3.

bool operator!=(const int &lhs, const int &rhs)
bool operator==(const int &lhs, const int &rhs)

Detailed Description

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 set to zero.

QMarginsF objects can be streamed as well as compared.

Related Non-Members

bool QMarginsF::operator!=(const int &lhs, const int &rhs)

Returns true if m1 and m2 are different; otherwise returns false.

This function was introduced in Qt 5.0.

bool QMarginsF::operator==(const int &lhs, const int &rhs)

Returns true if m1 and m2 are equal; otherwise returns false.

This function was introduced in Qt 5.0.