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。