内容表

上一话题

QMargins

下一话题

QMessageAuthenticationCode

QMarginsF

QMarginsF class defines the four margins of a rectangle. 更多 …

Inheritance diagram of PySide2.QtCore.QMarginsF

New in version 5.3.

概要

函数

详细描述

QMarginsF defines a set of four margins; left, top, right and bottom, that describe the size of the borders surrounding a rectangle.

isNull() function returns true only if all margins are set to zero.

QMarginsF objects can be streamed as well as compared.

class QMarginsF

QMarginsF(margins)

QMarginsF(QMarginsF)

QMarginsF(left, top, right, bottom)

param bottom

qreal

param QMarginsF

QMarginsF

param top

qreal

param right

qreal

param left

qreal

param margins

QMargins

Constructs a margins object with all margins set to 0.

另请参阅

isNull()

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.

另请参阅

setBottom()

PySide2.QtCore.QMarginsF. isNull ( )
返回类型

bool

返回 true if all margins are 0; otherwise returns false.

PySide2.QtCore.QMarginsF. left ( )
返回类型

qreal

Returns the left margin.

另请参阅

setLeft()

PySide2.QtCore.QMarginsF. __ne__ ( rhs )
参数

rhs – QMarginsF

返回类型

bool

PySide2.QtCore.QMarginsF. __mul__ ( lhs )
参数

lhs – qreal

返回类型

QMarginsF

PySide2.QtCore.QMarginsF. __mul__ ( rhs )
参数

rhs – qreal

返回类型

QMarginsF

PySide2.QtCore.QMarginsF. __imul__ ( factor )
参数

factor – qreal

返回类型

QMarginsF

Multiplies each component of this object by factor and returns a reference to it.

另请参阅

operator/=()

PySide2.QtCore.QMarginsF. __add__ ( )
返回类型

QMarginsF

PySide2.QtCore.QMarginsF. __add__ ( rhs )
参数

rhs – QMarginsF

返回类型

QMarginsF

Returns a QMargin object that is formed from all components of margins .

PySide2.QtCore.QMarginsF. __add__ ( lhs )
参数

lhs – qreal

返回类型

QMarginsF

Returns a QMargin object that is formed from all components of margins .

PySide2.QtCore.QMarginsF. __add__ ( rhs )
参数

rhs – qreal

返回类型

QMarginsF

Returns a QMargin object that is formed from all components of margins .

PySide2.QtCore.QMarginsF. __iadd__ ( addend )
参数

addend – qreal

返回类型

QMarginsF

这是重载函数。

添加 addend to each component of this object and returns a reference to it.

另请参阅

operator-=()

PySide2.QtCore.QMarginsF. __iadd__ ( margins )
参数

margins – QMarginsF

返回类型

QMarginsF

PySide2.QtCore.QMarginsF. __sub__ ( )
返回类型

QMarginsF

PySide2.QtCore.QMarginsF. __sub__ ( rhs )
参数

rhs – QMarginsF

返回类型

QMarginsF

Returns a QMargin object that is formed by negating all components of margins .

PySide2.QtCore.QMarginsF. __sub__ ( rhs )
参数

rhs – qreal

返回类型

QMarginsF

Returns a QMargin object that is formed by negating all components of margins .

PySide2.QtCore.QMarginsF. __isub__ ( margins )
参数

margins – QMarginsF

返回类型

QMarginsF

PySide2.QtCore.QMarginsF. __isub__ ( subtrahend )
参数

subtrahend – qreal

返回类型

QMarginsF

这是重载函数。

Subtracts the subtrahend from each component of this object and returns a reference to it.

另请参阅

operator+=()

PySide2.QtCore.QMarginsF. __div__ ( divisor )
参数

divisor – qreal

返回类型

QMarginsF

PySide2.QtCore.QMarginsF. __idiv__ ( divisor )
参数

divisor – qreal

返回类型

QMarginsF

Divides each component of this object by divisor and returns a reference to it.

另请参阅

operator*=()

PySide2.QtCore.QMarginsF. __eq__ ( rhs )
参数

rhs – QMarginsF

返回类型

bool

PySide2.QtCore.QMarginsF. right ( )
返回类型

qreal

Returns the right margin.

另请参阅

setRight()

PySide2.QtCore.QMarginsF. setBottom ( bottom )
参数

bottom – qreal

Sets the bottom margin to bottom .

另请参阅

bottom()

PySide2.QtCore.QMarginsF. setLeft ( left )
参数

left – qreal

Sets the left margin to left .

另请参阅

left()

PySide2.QtCore.QMarginsF. setRight ( right )
参数

right – qreal

Sets the right margin to right .

另请参阅

right()

PySide2.QtCore.QMarginsF. setTop ( top )
参数

top – qreal

Sets the Top margin to Top .

另请参阅

top()

PySide2.QtCore.QMarginsF. toMargins ( )
返回类型

QMargins

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()

PySide2.QtCore.QMarginsF. top ( )
返回类型

qreal

Returns the top margin.

另请参阅

setTop()