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 PySide2.QtCore.QMarginsF¶
PySide2.QtCore.QMarginsF(margins)
PySide2.QtCore.QMarginsF(QMarginsF)
PySide2.QtCore.QMarginsF(left, top, right, bottom)
- param bottom:
float
- param QMarginsF:
- param top:
float
- param right:
float
- param left:
float
- param margins:
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:
float
Returns the bottom margin.
See also
- PySide2.QtCore.QMarginsF.isNull()¶
- Return type:
bool
Returns
true
if all margins are very close to 0; otherwise returns false.See also
qFuzzyIsNull
- PySide2.QtCore.QMarginsF.__ne__(rhs)¶
- Parameters:
rhs –
PySide2.QtCore.QMarginsF
- Return type:
bool
- PySide2.QtCore.QMarginsF.__mul__(lhs)¶
- Parameters:
lhs – float
- Return type:
- PySide2.QtCore.QMarginsF.__mul__(rhs)
- Parameters:
rhs – float
- Return type:
- PySide2.QtCore.QMarginsF.__imul__(factor)¶
- Parameters:
factor – float
- Return type:
Multiplies each component of this object by
factor
and returns a reference to it.See also
operator/=()
- PySide2.QtCore.QMarginsF.__add__()¶
- Return type:
- PySide2.QtCore.QMarginsF.__add__(rhs)
- Parameters:
rhs –
PySide2.QtCore.QMarginsF
- Return type:
Returns a QMargin object that is formed from all components of
margins
.
- PySide2.QtCore.QMarginsF.__add__(lhs)
- Parameters:
lhs – float
- Return type:
Returns a QMargin object that is formed from all components of
margins
.
- PySide2.QtCore.QMarginsF.__add__(rhs)
- Parameters:
rhs – float
- Return type:
Returns a QMargin object that is formed from all components of
margins
.
- PySide2.QtCore.QMarginsF.__iadd__(addend)¶
- Parameters:
addend – float
- 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)
- Parameters:
margins –
PySide2.QtCore.QMarginsF
- Return type:
- PySide2.QtCore.QMarginsF.__sub__()¶
- Return type:
- PySide2.QtCore.QMarginsF.__sub__(rhs)
- Parameters:
rhs –
PySide2.QtCore.QMarginsF
- Return type:
Returns a QMargin object that is formed by negating all components of
margins
.
- PySide2.QtCore.QMarginsF.__sub__(rhs)
- Parameters:
rhs – float
- Return type:
Returns a QMargin object that is formed by negating all components of
margins
.
- PySide2.QtCore.QMarginsF.__isub__(margins)¶
- Parameters:
margins –
PySide2.QtCore.QMarginsF
- Return type:
- PySide2.QtCore.QMarginsF.__isub__(subtrahend)
- Parameters:
subtrahend – float
- 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.__div__(divisor)¶
- Parameters:
divisor – float
- Return type:
- PySide2.QtCore.QMarginsF.__idiv__(divisor)¶
- Parameters:
divisor – float
- Return type:
Divides each component of this object by
divisor
and returns a reference to it.See also
operator*=()
- PySide2.QtCore.QMarginsF.__eq__(rhs)¶
- Parameters:
rhs –
PySide2.QtCore.QMarginsF
- Return type:
bool
- PySide2.QtCore.QMarginsF.right()¶
- Return type:
float
Returns the right margin.
See also
- PySide2.QtCore.QMarginsF.setBottom(bottom)¶
- Parameters:
bottom – float
Sets the bottom margin to
bottom
.See also
- PySide2.QtCore.QMarginsF.setLeft(left)¶
- Parameters:
left – float
Sets the left margin to
left
.See also
- PySide2.QtCore.QMarginsF.setRight(right)¶
- Parameters:
right – float
Sets the right margin to
right
.See also
- PySide2.QtCore.QMarginsF.setTop(top)¶
- Parameters:
top – float
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()
© 2022 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.