PDA

View Full Version : how to display all images from directory one after another?



beetroot.
31st August 2012, 18:47
Hi! I try to make a gui application in qt creator. I want to display all images from choosen directory (a sort of slideshow), I read QDir, QStringList, QFileDialog class references but I have no idea how to do it. Please give me any examples of code.

ChrisW67
1st September 2012, 03:05
You really did not find the Image Viewer Example while you were reading?

beetroot.
1st September 2012, 18:17
I found that but it didnt solve my problem. Generally, I have to do a screensaver, but first I just want to do a slideshow. In Image Viewer you can only show one chosen image and then choose another one. I thought of writing a function which will load the next image to label and connect it with timer like a slot.

ChrisW67
2nd September 2012, 03:29
A QTimer with its timeout() signal attached to a slot is perfectly reasonable. I offered the example because your initial question was completely broad and non-specific.