Image viewer class. More...
#include <imageviewer.hpp>
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 |
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.
Enums mouse interaction.
Definition at line 56 of file imageviewer.hpp.
| QExtend::ImageViewer::ImageViewer | ( | QWidget * | parent = 0 |
) |
Default constructor.
Default constructor
| 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] |
MouseInteractionMode QExtend::ImageViewer::mouseInteraction [read, write] |
Definition at line 47 of file imageviewer.hpp.
© 2000-2025 - www.developpez.com