Load images from folder with Qt
<p>i am new in QT and i want to display a lot of images, and be able to load them from a folder, i have a code for only one image, it worked fine but want to have the same result  for many images , here is my code :</p>

<pre><code> QString imagePath = QFileDialog::getOpenFileName(
            this,
            tr("Open File"),
            "",
            tr("JPEG (*.jpg *.jpeg);;PNG (*.png);; BMP (*.bmp)" )
            );
imageObject = new QImage();
imageObject-&gt;load(imagePath);
image = QPixmap::fromImage(*imageObject);
scene = new QGraphicsScene(this);
scene-&gt;addPixmap(image);
scene-&gt;setSceneRect(image.rect());
ui-&gt;graphicsView-&gt;setScene(scene);
</code></pre>