QMarginsF¶

New in version 5.3.
Synopsis¶
Functions¶
def
__add__
()def
__add__
(, rhs)def
__add__
(, rhs)def
__add__
(lhs)def
__div__
(, divisor)def
__eq__
(, rhs)def
__iadd__
(addend)def
__iadd__
(margins)def
__idiv__
(divisor)def
__imul__
(factor)def
__isub__
(margins)def
__isub__
(subtrahend)def
__mul__
(, rhs)def
__mul__
(lhs)def
__ne__
(, rhs)def
__sub__
()def
__sub__
(, rhs)def
__sub__
(, rhs)def
bottom
()def
isNull
()def
left
()def
right
()def
setBottom
(bottom)def
setLeft
(left)def
setRight
(right)def
setTop
(top)def
toMargins
()def
top
()
Detailed Description¶
-
class
QMarginsF
¶ Constructs a margins object with all margins set to 0.
See also
Constructs margins copied from the given
margins
Constructs margins with the given
left
,top
,right
,bottom
See also
-
PySide2.QtCore.QMarginsF.
bottom
()¶ - Return type
qreal
Returns the bottom margin.
See also
-
PySide2.QtCore.QMarginsF.
isNull
()¶ - Return type
bool
Returns
true
if all margins are 0; otherwise returns false.
-
PySide2.QtCore.QMarginsF.
__mul__
(rhs) - Parameters
rhs –
qreal
- Return type
-
PySide2.QtCore.QMarginsF.
__imul__
(factor)¶ - Parameters
factor –
qreal
- Return type
Multiplies each component of this object by
factor
and returns a reference to it.See also
operator/=()
-
PySide2.QtCore.QMarginsF.
__add__
(rhs) -
Returns a QMargin object that is formed from all components of
margins
.
-
PySide2.QtCore.QMarginsF.
__add__
(lhs) - Parameters
lhs –
qreal
- Return type
Returns a QMargin object that is formed from all components of
margins
.
-
PySide2.QtCore.QMarginsF.
__add__
(rhs) - Parameters
rhs –
qreal
- Return type
Returns a QMargin object that is formed from all components of
margins
.
-
PySide2.QtCore.QMarginsF.
__iadd__
(addend)¶ - Parameters
addend –
qreal
- 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.QMarginsF.
__iadd__
(margins) -
Add each component of
margins
to the respective component of this object and returns a reference to it.See also
operator-=()
-
PySide2.QtCore.QMarginsF.
__sub__
(rhs) -
Returns a QMargin object that is formed by negating all components of
margins
.
-
PySide2.QtCore.QMarginsF.
__sub__
(rhs) - Parameters
rhs –
qreal
- Return type
Returns a QMargin object that is formed by negating all components of
margins
.
-
PySide2.QtCore.QMarginsF.
__isub__
(margins)¶ -
Subtract each component of
margins
from the respective component of this object and returns a reference to it.See also
operator+=()
-
PySide2.QtCore.QMarginsF.
__isub__
(subtrahend) - Parameters
subtrahend –
qreal
- 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.QMarginsF.
__idiv__
(divisor)¶ - Parameters
divisor –
qreal
- Return type
Divides each component of this object by
divisor
and returns a reference to it.See also
operator*=()
-
PySide2.QtCore.QMarginsF.
right
()¶ - Return type
qreal
Returns the right margin.
See also
-
PySide2.QtCore.QMarginsF.
setBottom
(bottom)¶ - Parameters
bottom –
qreal
Sets the bottom margin to
bottom
.See also
-
PySide2.QtCore.QMarginsF.
setLeft
(left)¶ - Parameters
left –
qreal
Sets the left margin to
left
.See also
-
PySide2.QtCore.QMarginsF.
setRight
(right)¶ - Parameters
right –
qreal
Sets the right margin to
right
.See also
-
PySide2.QtCore.QMarginsF.
setTop
(top)¶ - Parameters
top –
qreal
Sets the Top margin to
Top
.See also
-
PySide2.QtCore.QMarginsF.
toMargins
()¶ - Return type
Returns an integer based copy of this margins object.
Note that the components in the returned margins will be rounded to the nearest integer.
See also
QMarginsF()