Quark  0.1
ImageView Class Reference

A simple widget that displays an image. More...

#include <ImageView.h++>

Inheritance diagram for ImageView:

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)
 

Detailed Description

A simple widget that displays an image.

The image is scaled to fit optimally within the widget, while maintaining the image's aspect ratio.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ImageView()

ImageView ( QWidget *  parent = NULL)
explicit

Constructor.

◆ ~ImageView()

virtual ~ImageView ( )
virtual

Destructor.

Member Function Documentation

◆ paintEvent()

virtual void paintEvent ( QPaintEvent *  event)
protectedvirtual

◆ resizeEvent()

virtual void resizeEvent ( QResizeEvent *  event)
protectedvirtual

◆ setAlignment()

void setAlignment ( Qt::Alignment  alignment)

Sets the alignment for the image within the widget.

◆ setPixmap()

void setPixmap ( QPixmap  pixmap)

Sets the image to be displayed by the widget.


The documentation for this class was generated from the following file: