• PySide 模块
  • PySide.QtCore
  • 内容表

    上一话题

    QSize

    下一话题

    QLineF

    QMargins

    注意

    该类在 Qt4.6 引入

    概要

    函数

    详细描述

    PySide.QtCore.QMargins class defines the four margins of a rectangle.

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

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

    QMargin objects can be streamed as well as compared.

    class PySide.QtCore. QMargins
    class PySide.QtCore. QMargins ( QMargins )
    class PySide.QtCore. QMargins ( left , top , right , bottom )
    参数:
    • right PySide.QtCore.int
    • QMargins PySide.QtCore.QMargins
    • left PySide.QtCore.int
    • bottom PySide.QtCore.int
    • top PySide.QtCore.int

    Constructs a margins object with all margins set to 0.

    Constructs margins with the given left , top , right , bottom

    PySide.QtCore.QMargins. bottom ( )
    返回类型: PySide.QtCore.int

    Returns the bottom margin.

    PySide.QtCore.QMargins. isNull ( )
    返回类型: PySide.QtCore.bool

    Returns true if all margins are is 0; otherwise returns false.

    PySide.QtCore.QMargins. left ( )
    返回类型: PySide.QtCore.int

    Returns the left margin.

    PySide.QtCore.QMargins. __ne__ ( m2 )
    参数: m2 PySide.QtCore.QMargins
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QMargins. __eq__ ( m2 )
    参数: m2 PySide.QtCore.QMargins
    返回类型: PySide.QtCore.bool
    PySide.QtCore.QMargins. right ( )
    返回类型: PySide.QtCore.int

    Returns the right margin.

    PySide.QtCore.QMargins. setBottom ( bottom )
    参数: bottom PySide.QtCore.int

    Sets the bottom margin to bottom .

    PySide.QtCore.QMargins. setLeft ( left )
    参数: left PySide.QtCore.int

    Sets the left margin to left .

    PySide.QtCore.QMargins. setRight ( right )
    参数: right PySide.QtCore.int

    Sets the right margin to right .

    PySide.QtCore.QMargins. setTop ( top )
    参数: top PySide.QtCore.int

    Sets the Top margin to Top .

    PySide.QtCore.QMargins. top ( )
    返回类型: PySide.QtCore.int

    Returns the top margin.