QMargins Class Reference

[QtCore module]

该QMargins类定义的四个边距的矩形。More…

Methods

  • __init__ (self)
  • __init__ (self, int aleft, int atop, int aright, int abottom)
  • __init__ (self, QMargins)
  • int bottom (self)
  • bool isNull (self)
  • int left (self)
  • int right (self)
  • setBottom (self, int abottom)
  • setLeft (self, int aleft)
  • setRight (self, int aright)
  • setTop (self, int atop)
  • int top (self)

Special Methods

  • bool __eq__ (self, QMargins m2)
  • bool __ne__ (self, QMargins m2)

Detailed Description

该QMargins类定义的四个边距的矩形。

QMargin定义了一组四个边距,左,上,右,下,描述围绕矩形边框的大小。

isNull只有当所有的边距设置为零( )函数返回True。

相比QMargin对象可以被串流播放以及。


Method Documentation

  1. QMargins.__init__ (self)

构造一个对象边距设置为0的所有利润。

See also isNull( ) 。

  1. QMargins.__init__ (self, int aleft, int atop, int aright, int abottom)

构建边距与给定的lefttoprightbottom

See also setLeft( )setRight( )setTop()和setBottom( ) 。

  1. QMargins.__init__ (self, QMargins)
  1. int QMargins.bottom (self)

返回下边距。

See also setBottom( ) 。

  1. bool QMargins.isNull (self)

返回True如果所有的利润都为0 ,否则返回False 。

  1. int QMargins.left (self)

返回留有馀量。

See also setLeft( ) 。

  1. int QMargins.right (self)

返回右页边距。

See also setRight( ) 。

  1. QMargins.setBottom (self, int abottom)

设置下边距来bottom

See also bottom( ) 。

  1. QMargins.setLeft (self, int aleft)

设置左边距为left

See also left( ) 。

  1. QMargins.setRight (self, int aright)

设置右边距为right

See also right( ) 。

  1. QMargins.setTop (self, int atop)

设置上边距,以Top

See also top( ) 。

  1. int QMargins.top (self)

返回顶部边距。

See also setTop( ) 。

  1. bool QMargins.__eq__ (self, QMargins m2)
  1. bool QMargins.__ne__ (self, QMargins m2)