1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef IMAGEVIEWER_H #define IMAGEVIEWER_H #include "ui_imageviewer.h" #include <QDialog> class ImageViewer : public QDialog, public Ui_ImageViewer { Q_OBJECT public: ImageViewer(QWidget *parent = 0); void setImage(const QImage &image); }; #endif