19 lines
314 B
C++
19 lines
314 B
C++
#pragma once
|
|
|
|
#include <QPixmap>
|
|
#include <QLabel>
|
|
|
|
class ImageWidget: public QLabel
|
|
{
|
|
private:
|
|
QPixmap sourceImage;
|
|
QPixmap currentImage;
|
|
|
|
void displayImage();
|
|
|
|
public:
|
|
ImageWidget(QWidget* parent): QLabel(parent) { }
|
|
void setPixmap(QPixmap image);
|
|
void paintEvent(QPaintEvent *event);
|
|
};
|