class AspectRatio
A widget that keeps its child content at a fixed width to height ratio.
Inherits from QWidget
Functions
hasHeightForWidth
public bool hasHeightForWidth()
AspectRatio
public AspectRatio(double ratio, QWidget * parent)
ratio
public double ratio()
setRatio
public void setRatio(double ratio)
setWidget
public void setWidget(QWidget & widget)
sizeHint
public QSize sizeHint()
heightForWidth
public int heightForWidth(int width)
resizeEvent
protected void resizeEvent(QResizeEvent * )
widget
public QWidget * widget()