IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QExtend::ImageViewer Class Reference

Image viewer class. More...

#include <imageviewer.hpp>

List of all members.

Public Types

enum  MouseInteractionMode { NoInteraction, DragAndWheelzoom, DragToZoom }
 

Enums mouse interaction.

More...

Public Member Functions

 ImageViewer (QWidget *parent=0)
 Default constructor.
void loadImage (const QString &imagePath)
 Load image by path.
void loadImage (const QImage &image)
 Load QImage.
void loadImage (const QPixmap &pixmap)
 Load QPixmap.
void setMouseInteraction (MouseInteractionMode interaction)
 Set mouse interaction.
MouseInteractionMode mouseInteraction () const
 Current mouse interaction.

Protected Member Functions

void mouseMoveEvent (QMouseEvent *event)
void mousePressEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
void wheelEvent (QWheelEvent *event)

Properties

MouseInteractionMode mouseInteraction

Detailed Description

Image viewer class.

ImageViewer is an improved image viewer wich aim to provide some easy image manipulation

Definition at line 44 of file imageviewer.hpp.


Member Enumeration Documentation

Enums mouse interaction.

Enumerator:
NoInteraction 
DragAndWheelzoom 
DragToZoom 

Definition at line 56 of file imageviewer.hpp.


Constructor & Destructor Documentation

QExtend::ImageViewer::ImageViewer ( QWidget *  parent = 0  ) 

Default constructor.

Default constructor


Member Function Documentation

void QExtend::ImageViewer::loadImage ( const QString &  imagePath  ) 

Load image by path.

Load image by path

void QExtend::ImageViewer::loadImage ( const QImage &  image  ) 

Load QImage.

Load QImage

void QExtend::ImageViewer::loadImage ( const QPixmap &  pixmap  ) 

Load QPixmap.

Load QPixmap

MouseInteractionMode QExtend::ImageViewer::mouseInteraction (  )  const

Current mouse interaction.

Current mouse interaction

void QExtend::ImageViewer::mouseMoveEvent ( QMouseEvent *  event  )  [protected]
void QExtend::ImageViewer::mousePressEvent ( QMouseEvent *  event  )  [protected]
void QExtend::ImageViewer::mouseReleaseEvent ( QMouseEvent *  event  )  [protected]
void QExtend::ImageViewer::setMouseInteraction ( MouseInteractionMode  interaction  ) 

Set mouse interaction.

Set mouse interaction

void QExtend::ImageViewer::wheelEvent ( QWheelEvent *  event  )  [protected]

Property Documentation

MouseInteractionMode QExtend::ImageViewer::mouseInteraction [read, write]

Definition at line 47 of file imageviewer.hpp.

Responsable bénévole de la rubrique Qt : Thibaut Cuvelier -