import directory

This commit is contained in:
2025-02-19 15:44:16 +01:00
parent c4d2e44836
commit 5c41adf907
3 changed files with 24 additions and 4 deletions

View File

@@ -1,13 +1,12 @@
#include "mainwindow.h"
#include <QApplication>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
imageGallery = new ImageGallery(this);
setCentralWidget(imageGallery);
setWindowTitle("Image Gallery");
imageGallery->addImage("/home/krzys/Obrazy/kod.png");
imageGallery->addImage("/home/krzys/Obrazy/kod.png");
setWindowTitle("Kallery Image Gallery");
imageGallery->addImagesFromDirectory("/home/krzys/Obrazy");
resize(800, 600);
}