QMargins Class

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

Header: #include <QMargins>
qmake: QT += core
Since: Qt 4.6

This class was introduced in Qt 4.6.

bool operator!=(const int &m1, const int &m2)
bool operator==(const int &m1, const int &m2)

Detailed Description

QMargin 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.

QMargin objects can be streamed as well as compared.

Related Non-Members

bool QMargins::operator!=(const int &m1, const int &m2)

This is an overloaded function.

Returns true if byte array a1 is not equal to byte array a2; otherwise returns false.

This function was introduced in Qt 5.0.

See also QByteArray::compare().

bool QMargins::operator==(const int &m1, const int &m2)

This is an overloaded function.

Returns true if byte array a1 is equal to byte array a2; otherwise returns false.

This function was introduced in Qt 5.0.

See also QByteArray::compare().