Skip to main content

class AspectRatio

Source

A widget that keeps its child content at a fixed width to height ratio.

Inherits from QWidget

Functions​

hasHeightForWidth​

public bool hasHeightForWidth()

Source

AspectRatio​

public AspectRatio(double ratio, QWidget * parent)

ratio​

public double ratio()

Source

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()

Source