本系列文章长期更新修改.
QRect,相当于QPoint+QSize,但拥有更丰富的函数和操作,本质上是4个int的结构体.
属性:
Methods
- __init__ (self)
- __init__ (self, int aleft, int atop, int awidth, int aheight)
- __init__ (self, QPoint atopLeft, QPoint abottomRight)
- __init__ (self, QPoint atopLeft, QSize asize)
- __init__ (self, QRect other)
- adjust (self, int dx1, int dy1, int dx2, int dy2)
- QRect adjusted (self, int xp1, int yp1, int xp2, int yp2)
- int bottom (self)
- QPoint bottomLeft (self)
- QPoint bottomRight (self)
- QPoint center (self)
- bool contains (self, QPoint p, bool proper = False)
- bool contains (self, QRect r, bool proper = False)
- bool contains (self, int ax, int ay, bool aproper)
- bool contains (self, int ax, int ay)
- (int xp1, int yp1, int xp2, int yp2) getCoords (self)
- (int ax, int ay, int aw, int ah) getRect (self)
- int height (self)
- QRect intersect (self, QRect r)
- QRect intersected (self, QRect other)
- bool intersects (self, QRect r)
- bool isEmpty (self)
- bool isNull (self)
- bool isValid (self)
- int left (self)
- moveBottom (self, int pos)
- moveBottomLeft (self, QPoint p)