New in version 5.3.
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
()
QMarginsF
¶
Constructs a margins object with all margins set to 0.
另请参阅
Constructs margins copied from the given
margins
Constructs margins with the given
left
,
top
,
right
,
bottom
PySide2.QtCore.QMarginsF.
bottom
(
)
¶
qreal
Returns the bottom margin.
另请参阅
PySide2.QtCore.QMarginsF.
isNull
(
)
¶
bool
返回
true
if all margins are 0; otherwise returns false.
PySide2.QtCore.QMarginsF.
__imul__
(
factor
)
¶
factor
–
qreal
Multiplies each component of this object by
factor
and returns a reference to it.
另请参阅
operator/=()
PySide2.QtCore.QMarginsF.
__add__
(
rhs
)
¶
Returns a QMargin object that is formed from all components of
margins
.
PySide2.QtCore.QMarginsF.
__add__
(
lhs
)
¶
lhs
–
qreal
Returns a QMargin object that is formed from all components of
margins
.
PySide2.QtCore.QMarginsF.
__add__
(
rhs
)
¶
rhs
–
qreal
Returns a QMargin object that is formed from all components of
margins
.
PySide2.QtCore.QMarginsF.
__iadd__
(
addend
)
¶
addend
–
qreal
这是重载函数。
添加
addend
to each component of this object and returns a reference to it.
另请参阅
operator-=()
PySide2.QtCore.QMarginsF.
__sub__
(
rhs
)
¶
Returns a QMargin object that is formed by negating all components of
margins
.
PySide2.QtCore.QMarginsF.
__sub__
(
rhs
)
¶
rhs
–
qreal
Returns a QMargin object that is formed by negating all components of
margins
.
PySide2.QtCore.QMarginsF.
__isub__
(
subtrahend
)
¶
subtrahend
–
qreal
这是重载函数。
Subtracts the
subtrahend
from each component of this object and returns a reference to it.
另请参阅
operator+=()
PySide2.QtCore.QMarginsF.
__idiv__
(
divisor
)
¶
divisor
–
qreal
Divides each component of this object by
divisor
and returns a reference to it.
另请参阅
operator*=()
PySide2.QtCore.QMarginsF.
right
(
)
¶
qreal
Returns the right margin.
另请参阅
PySide2.QtCore.QMarginsF.
setBottom
(
bottom
)
¶
bottom
–
qreal
Sets the bottom margin to
bottom
.
另请参阅
PySide2.QtCore.QMarginsF.
setLeft
(
left
)
¶
left
–
qreal
Sets the left margin to
left
.
另请参阅
PySide2.QtCore.QMarginsF.
setRight
(
right
)
¶
right
–
qreal
Sets the right margin to
right
.
另请参阅
PySide2.QtCore.QMarginsF.
toMargins
(
)
¶
Returns an integer based copy of this margins object.
Note that the components in the returned margins will be rounded to the nearest integer.
另请参阅
QMarginsF()