QMarginsF Class

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

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

Public Variables

int qreal
int operator+(const int &, const int &)
int operator-(const int &, const int &)

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

QMarginsF objects can be streamed as well as compared.

Related Non-Members

int operator+(const int &, const int &)

Returns the sum of s1 and s2; each component is added separately.

This function was introduced in Qt 5.3.

int operator-(const int &, const int &)

Returns s2 subtracted from s1; each component is subtracted separately.

This function was introduced in Qt 5.3.