本系列文章长期更新修改.
QSize,是Qt的一个常用数据结构,它是整数宽度高度的封装,本质上就是两个int的结构体.
属性:
Methods
- __init__ (self)
- __init__ (self, int w, int h)
- __init__ (self, QSize other)
- QSize boundedTo (self, QSize otherSize)
- QSize expandedTo (self, QSize otherSize)
- int height (self)
- bool isEmpty (self)
- bool isNull (self)
- bool isValid (self)
- scale (self, QSize s, Qt.Aspect