The QMargins class defines the four margins of a rectangle. More...
#include <QMargins>
This class was introduced in Qt 4.6.
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 |
bool | operator!= ( const QMargins & m1, const QMargins & m2 ) |
bool | operator== ( const QMargins & m1, const QMargins & m2 ) |
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.
Constructs a margins object with all margins set to 0.
See also isNull().
Constructs margins with the given left, top, right, bottom
See also setLeft(), setRight(), setTop(), and setBottom().
Returns the bottom margin.
See also setBottom().
Returns true if all margins are is 0; otherwise returns false.
Returns the left margin.
See also setLeft().
Returns the right margin.
See also setRight().
Sets the bottom margin to bottom.
See also bottom().
Sets the left margin to left.
See also left().
Sets the right margin to right.
See also right().
Sets the Top margin to Top.
See also top().
Returns the top margin.
See also setTop().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.