注意
该类在 Qt4.6 引入
PySide.QtCore.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.
PySide.QtCore.QMargins.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.
Constructs margins with the given left , top , right , bottom
| 返回类型: | PySide.QtCore.int |
|---|
Returns the bottom margin.
| 返回类型: | PySide.QtCore.bool |
|---|
Returns true if all margins are is 0; otherwise returns false.
| 返回类型: | PySide.QtCore.int |
|---|
Returns the left margin.
| 参数: | m2 – PySide.QtCore.QMargins |
|---|---|
| 返回类型: | PySide.QtCore.bool |
| 参数: | m2 – PySide.QtCore.QMargins |
|---|---|
| 返回类型: | PySide.QtCore.bool |
| 返回类型: | PySide.QtCore.int |
|---|
Returns the right margin.
| 参数: | bottom – PySide.QtCore.int |
|---|
Sets the bottom margin to bottom .
| 参数: | left – PySide.QtCore.int |
|---|
Sets the left margin to left .
| 参数: | right – PySide.QtCore.int |
|---|
Sets the right margin to right .
| 参数: | top – PySide.QtCore.int |
|---|
Sets the Top margin to Top .
| 返回类型: | PySide.QtCore.int |
|---|
Returns the top margin.