|
Quark
0.1
|
A simple widget that displays an image. More...
#include <ImageView.h++>

Public Member Functions | |
| ImageView (QWidget *parent=NULL) | |
| Constructor. More... | |
| virtual | ~ImageView () |
| Destructor. More... | |
| void | setPixmap (QPixmap pixmap) |
| Sets the image to be displayed by the widget. More... | |
| void | setAlignment (Qt::Alignment alignment) |
| Sets the alignment for the image within the widget. More... | |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) |
| virtual void | resizeEvent (QResizeEvent *event) |
A simple widget that displays an image.
The image is scaled to fit optimally within the widget, while maintaining the image's aspect ratio.
|
explicit |
Constructor.
|
virtual |
Destructor.
|
protectedvirtual |
|
protectedvirtual |
| void setAlignment | ( | Qt::Alignment | alignment | ) |
Sets the alignment for the image within the widget.
| void setPixmap | ( | QPixmap | pixmap | ) |
Sets the image to be displayed by the widget.