QMargins¶
New in version 4.6.
Synopsis¶
Functions¶
def
__add__
()def
__add__
(, m2)def
__add__
(, rhs)def
__add__
(lhs)def
__div__
(, divisor)def
__div__
(, divisor)def
__eq__
(, m2)def
__iadd__
(arg__1)def
__iadd__
(margins)def
__idiv__
(arg__1)def
__idiv__
(arg__1)def
__imul__
(arg__1)def
__imul__
(arg__1)def
__isub__
(arg__1)def
__isub__
(margins)def
__mul__
(, factor)def
__mul__
(, factor)def
__mul__
(factor)def
__mul__
(factor)def
__ne__
(, m2)def
__sub__
()def
__sub__
(, m2)def
__sub__
(, rhs)def
bottom
()def
isNull
()def
left
()def
right
()def
setBottom
(bottom)def
setLeft
(left)def
setRight
(right)def
setTop
(top)def
top
()
Detailed Description¶
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 returnstrue
only if all margins are set to zero.QMargin objects can be streamed as well as compared.
-
class
QMargins
¶ QMargins(QMargins)
QMargins(left, top, right, bottom)
- param QMargins
- param bottom
int
- param top
int
- param right
int
- param left
int
Constructs a margins object with all margins set to 0.
See also
Constructs margins with the given
left
,top
,right
,bottom
See also
-
PySide2.QtCore.QMargins.
bottom
()¶ - Return type
int
Returns the bottom margin.
See also
-
PySide2.QtCore.QMargins.
isNull
()¶ - Return type
bool
Returns
true
if all margins are is 0; otherwise returns false.
-
PySide2.QtCore.QMargins.
__mul__
(factor) - Parameters
factor –
int
- Return type
-
PySide2.QtCore.QMargins.
__mul__
(factor) - Parameters
factor –
qreal
- Return type
-
PySide2.QtCore.QMargins.
__mul__
(factor) - Parameters
factor –
qreal
- Return type
-
PySide2.QtCore.QMargins.
__imul__
(arg__1)¶ - Parameters
arg__1 –
int
- Return type
Multiplies each component of this object by
factor
and returns a reference to it.See also
operator/=()
-
PySide2.QtCore.QMargins.
__imul__
(arg__1) - Parameters
arg__1 –
qreal
- Return type
This is an overloaded function.
Multiplies each component of this object by
factor
and returns a reference to it.See also
operator/=()
-
PySide2.QtCore.QMargins.
__add__
(m2) -
Returns a QMargin object that is formed from all components of
margins
.
-
PySide2.QtCore.QMargins.
__add__
(lhs) - Parameters
lhs –
int
- Return type
Returns a QMargin object that is formed from all components of
margins
.
-
PySide2.QtCore.QMargins.
__add__
(rhs) - Parameters
rhs –
int
- Return type
Returns a QMargin object that is formed from all components of
margins
.
-
PySide2.QtCore.QMargins.
__iadd__
(arg__1) - Parameters
arg__1 –
int
- Return type
This is an overloaded function.
Adds the
addend
to each component of this object and returns a reference to it.See also
operator-=()
-
PySide2.QtCore.QMargins.
__sub__
(m2) -
Returns a QMargin object that is formed by negating all components of
margins
.
-
PySide2.QtCore.QMargins.
__sub__
(rhs) - Parameters
rhs –
int
- Return type
Returns a QMargin object that is formed by negating all components of
margins
.
-
PySide2.QtCore.QMargins.
__isub__
(arg__1) - Parameters
arg__1 –
int
- Return type
This is an overloaded function.
Subtracts the
subtrahend
from each component of this object and returns a reference to it.See also
operator+=()
-
PySide2.QtCore.QMargins.
__div__
(divisor) - Parameters
divisor –
qreal
- Return type
-
PySide2.QtCore.QMargins.
__idiv__
(arg__1)¶ - Parameters
arg__1 –
int
- Return type
Divides each component of this object by
divisor
and returns a reference to it.See also
operator*=()
-
PySide2.QtCore.QMargins.
__idiv__
(arg__1) - Parameters
arg__1 –
qreal
- Return type
This is an overloaded function.
See also
operator*=()
-
PySide2.QtCore.QMargins.
right
()¶ - Return type
int
Returns the right margin.
See also
-
PySide2.QtCore.QMargins.
setBottom
(bottom)¶ - Parameters
bottom –
int
Sets the bottom margin to
bottom
.See also
-
PySide2.QtCore.QMargins.
setLeft
(left)¶ - Parameters
left –
int
Sets the left margin to
left
.See also
-
PySide2.QtCore.QMargins.
setRight
(right)¶ - Parameters
right –
int
Sets the right margin to
right
.See also
-
PySide2.QtCore.QMargins.
setTop
(top)¶ - Parameters
top –
int
Sets the Top margin to
Top
.See also
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.