QT Show images by one by
Unsolved
General and Desktop
-
Hello,
I trying to make image slider with QT. I have 5 images in folder ( 1.jpg, 2.jpg, 3.jpg, 4.jpg, 5.jpg ). I want show them on label with timer but first 1.jpg after 2.jpg after 3,4,5 after again 1.jpg. How can I do this ? I dont want do this random. Thank you for help. -
Hello,
I trying to make image slider with QT. I have 5 images in folder ( 1.jpg, 2.jpg, 3.jpg, 4.jpg, 5.jpg ). I want show them on label with timer but first 1.jpg after 2.jpg after 3,4,5 after again 1.jpg. How can I do this ? I dont want do this random. Thank you for help.@jondoe I'd say have the filename of images in a list, and run a QTimer for the desired time interval, and on timer timeout you pick a new image to display based on index