Class RatioLayoutedFrame

Inheritance Relationships

Base Type

  • public QFrame

Class Documentation

class RatioLayoutedFrame : public QFrame

RatioLayoutedFrame is a layout containing a single frame with a fixed aspect ratio. The default aspect ratio is 4:3.

Public Functions

RatioLayoutedFrame(QWidget *parent, Qt::WindowFlags flags = QFlag{0})
virtual ~RatioLayoutedFrame()
const QImage &getImage() const
QImage getImageCopy() const
void setImage(const QImage &image)
QRect getAspectRatioCorrectPaintArea()
void resizeToFitAspectRatio()
void setOuterLayout(QHBoxLayout *outer_layout)
void setInnerFrameMinimumSize(const QSize &size)
void setInnerFrameMaximumSize(const QSize &size)
void setInnerFrameFixedSize(const QSize &size)

Signals

void delayed_update()
void mouseLeft(int x, int y)

Protected Functions

void setAspectRatio(unsigned short width, unsigned short height)
void paintEvent(QPaintEvent *event)

Protected Slots

void onSmoothImageChanged(bool checked)