Industrial Calibration  1.0.0
Loading...
Searching...
No Matches
industrial_calibration::AspectRatioPixmapLabel Class Reference

The AspectRatioPixmapLabel class https://stackoverflow.com/questions/8211982/qt-resizing-a-qlabel-containing-a-qpixmap-while-keeping-its-aspect-ratio.

#include <aspect_ratio_pixmap_label.h>

Inheritance diagram for industrial_calibration::AspectRatioPixmapLabel:

Public Slots

void setPixmap (const QPixmap &)
 
void resizeEvent (QResizeEvent *)
 

Public Member Functions

 AspectRatioPixmapLabel (QWidget *parent=0)
 
virtual int heightForWidth (int width) const
 
virtual QSize sizeHint () const
 
QPixmap scaledPixmap () const