Home · All Classes · Modules  · QSS HELP  · QSS 案例 · VER007 HOME

QMargins Class Reference
[QtCore module]

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

Methods

Special Methods


Detailed Description

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

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

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

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


Method Documentation

QMargins.__init__ (self)

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

See also isNull( ) 。

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

构建边距与给定的lefttoprightbottom

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

QMargins.__init__ (self, QMargins)

int QMargins.bottom (self)

返回下边距。

See also setBottom( ) 。

bool QMargins.isNull (self)

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

int QMargins.left (self)

返回留有馀量。

See also setLeft( ) 。

int QMargins.right (self)

返回右页边距。

See also setRight( ) 。

QMargins.setBottom (self, int abottom)

设置下边距来bottom

See also bottom( ) 。

QMargins.setLeft (self, int aleft)

设置左边距为left

See also left( ) 。

QMargins.setRight (self, int aright)

设置右边距为right

See also right( ) 。

QMargins.setTop (self, int atop)

设置上边距,以Top

See also top( ) 。

int QMargins.top (self)

返回顶部边距。

See also setTop( ) 。

bool QMargins.__eq__ (self, QMargins m2)

bool QMargins.__ne__ (self, QMargins m2)




PyQt 4.10.3 for X11 Copyright © Riverbank Computing Ltd and Nokia 2012 Qt 4.8.5