PDA

View Full Version : help: about images



miguel_mark
8th December 2009, 05:18
im creating a program that would show images. what i wanted to do now is to create a label and from there load the image to it, but what i wanted is there is a next button and all the images that are stored in the same folder of the first image can be loaded when the NEXT button is pressed. is there any way to do it? i want to do it like the windows picture and fax viewer. any help would be greatly appreciated.

dbzhang800
8th December 2009, 05:59
use QDir to get file names of images in any floder.

then your can use QImage to load images one by one

yogeshgokul
8th December 2009, 07:10
im creating a program that would show images. what i wanted to do now is to create a label and from there load the image to it, but what i wanted is there is a next button and all the images that are stored in the same folder of the first image can be loaded when the NEXT button is pressed. is there any way to do it? i want to do it like the windows picture and fax viewer. any help would be greatly appreciated.
Ok, you have all idea of what to do. Then go ahead and start implementing. Post here if you face any issue related to Qt.