first version
This commit is contained in:
25
imagegallery.h
Normal file
25
imagegallery.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef IMAGEGALLERY_H
|
||||
#define IMAGEGALLERY_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QScrollArea>
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QList>
|
||||
|
||||
class ImageGallery : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ImageGallery(QWidget *parent = nullptr);
|
||||
void addImage(const QString &imagePath);
|
||||
|
||||
private:
|
||||
QScrollArea *scrollArea;
|
||||
QWidget *scrollWidget;
|
||||
QVBoxLayout *scrollLayout;
|
||||
QList<QLabel*> imageLabels;
|
||||
};
|
||||
|
||||
#endif // IMAGEGALLERY_H
|
||||
Reference in New Issue
Block a user