The QMargins class defines the four margins of a rectangle. 更多...
| 头: | #include <QMargins> |
| Since: | 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.
QMargins 定义一组 4 边距;左、上、右和下,描述矩形周围边界的大小。
The isNull () function returns true only if all margins are set to zero.
既可以流化,也可以比较 QMargins 对象。
构造边距对象,采用把所有边距设为 0。
另请参阅 isNull ().
构造边距采用给定 left , top , right , bottom
另请参阅 setLeft (), setRight (), setTop (),和 setBottom ().
返回下边距。
另请参阅 setBottom ().
Returns true if all margins are is 0; otherwise returns false.
返回左边距。
另请参阅 setLeft ().
返回右边距。
另请参阅 setRight ().
将下边距设为 bottom .
另请参阅 bottom ().
将左边距设为 left .
另请参阅 left ().
将右边距设为 right .
另请参阅 right ().
将上边距设为 Top .
另请参阅 top ().
返回上边距。
另请参阅 setTop ().
返回 true 若 m1 and m2 are different; otherwise returns false.
返回 true 若 m1 and m2 相等;否则返回 false。