4.6 版新增。
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
()
QMargin defines a set of four margins; left, top, right and bottom, that describe the size of the borders surrounding a rectangle.
isNull()function returnstrueonly if all margins are set to zero.QMargin objects can be streamed as well as compared.
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.
另请参阅
Constructs margins with the given
left
,
top
,
right
,
bottom
PySide2.QtCore.QMargins.
bottom
(
)
¶
int
Returns the bottom margin.
另请参阅
PySide2.QtCore.QMargins.
isNull
(
)
¶
bool
返回
true
if all margins are is 0; otherwise returns false.
PySide2.QtCore.QMargins.
__imul__
(
arg__1
)
¶
arg__1
–
int
Multiplies each component of this object by
factor
and returns a reference to it.
另请参阅
operator/=()
PySide2.QtCore.QMargins.
__imul__
(
arg__1
)
¶
arg__1
–
qreal
这是重载函数。
Multiplies each component of this object by
factor
and returns a reference to it.
另请参阅
operator/=()
PySide2.QtCore.QMargins.
__iadd__
(
arg__1
)
¶
arg__1
–
int
这是重载函数。
添加
addend
to each component of this object and returns a reference to it.
另请参阅
operator-=()
PySide2.QtCore.QMargins.
__isub__
(
arg__1
)
¶
arg__1
–
int
这是重载函数。
Subtracts the
subtrahend
from each component of this object and returns a reference to it.
另请参阅
operator+=()
PySide2.QtCore.QMargins.
__idiv__
(
arg__1
)
¶
arg__1
–
int
Divides each component of this object by
divisor
and returns a reference to it.
另请参阅
operator*=()
PySide2.QtCore.QMargins.
__idiv__
(
arg__1
)
¶
arg__1
–
qreal
这是重载函数。
另请参阅
operator*=()
PySide2.QtCore.QMargins.
right
(
)
¶
int
Returns the right margin.
另请参阅
PySide2.QtCore.QMargins.
setBottom
(
bottom
)
¶
bottom
–
int
Sets the bottom margin to
bottom
.
另请参阅
PySide2.QtCore.QMargins.
setLeft
(
left
)
¶
left
–
int
Sets the left margin to
left
.
另请参阅
PySide2.QtCore.QMargins.
setRight
(
right
)
¶
right
–
int
Sets the right margin to
right
.
另请参阅