QMargins Class
The QMargins class defines the four margins of a rectangle. More...
Header: | #include <QMargins> |
qmake: | QT += core |
Since: | Qt 4.6 |
Public Functions
QMargins() | |
QMargins(int left, int top, int right, int bottom) | |
int | bottom() const |
bool | isNull() const |
int | left() const |
int | right() const |
void | setBottom(int bottom) |
void | setLeft(int left) |
void | setRight(int right) |
void | setTop(int top) |
int | top() const |
QMargins & | operator*=(int) |
QMargins & | operator*=(qreal) |
QMargins & | operator+=(const QMargins &margins) |
QMargins & | operator+=(int) |
QMargins & | operator-=(const QMargins &margins) |
QMargins & | operator-=(int) |
QMargins & | operator/=(int) |
QMargins & | operator/=(qreal) |
Detailed Description
The QMargins class defines the four margins of a rectangle.
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.
Member Type Documentation
Property Documentation
Member Function Documentation
QMargins::QMargins()
Default constructs an instance of QMargins.
QMargins::QMargins(int left, int top, int right, int bottom)
Default constructs an instance of QMargins.
int QMargins::bottom() const
See also setBottom().
bool QMargins::isNull() const
int QMargins::left() const
See also setLeft().
int QMargins::right() const
See also setRight().
void QMargins::setBottom(int bottom)
See also bottom().
void QMargins::setLeft(int left)
See also left().
void QMargins::setRight(int right)
See also right().
void QMargins::setTop(int top)
See also top().
int QMargins::top() const
See also setTop().