Note
This class was introduced in Qt 4.6
The 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.
The PySide.QtCore.QMargins.isNull() function returns true only if all margins are set to zero.
QMargin objects can be streamed as well as compared.
| Parameters: |
|
|---|
Constructs a margins object with all margins set to 0.
See also
Constructs margins with the given left , top , right , bottom
| Return type: | PySide.QtCore.int |
|---|
Returns the bottom margin.
See also
| Return type: | PySide.QtCore.bool |
|---|
Returns true if all margins are is 0; otherwise returns false.
| Return type: | PySide.QtCore.int |
|---|
Returns the left margin.
See also
| Parameters: | m2 – PySide.QtCore.QMargins |
|---|---|
| Return type: | PySide.QtCore.bool |
| Parameters: | m2 – PySide.QtCore.QMargins |
|---|---|
| Return type: | PySide.QtCore.bool |
| Return type: | PySide.QtCore.int |
|---|
Returns the right margin.
See also
| Parameters: | bottom – PySide.QtCore.int |
|---|
Sets the bottom margin to bottom .
See also
| Parameters: | left – PySide.QtCore.int |
|---|
Sets the left margin to left .
See also
| Parameters: | right – PySide.QtCore.int |
|---|
Sets the right margin to right .
See also
| Parameters: | top – PySide.QtCore.int |
|---|
Sets the Top margin to Top .
See also
| Return type: | PySide.QtCore.int |
|---|
Returns the top margin.
See also