hello
i am trying to develop an application in which a file dialog opens on a click of a push button.now the problem is when i select the images shown in file dialog ,i want to show the preview of that image before selecting the image.
hello
i am trying to develop an application in which a file dialog opens on a click of a push button.now the problem is when i select the images shown in file dialog ,i want to show the preview of that image before selecting the image.
You can use a QLabel to show the image. Use QLabel::setPixmap to set the image.
pseudo code is :
Hope this helpsscaledImage = image.scaled(); // small size of original image
label.setPixmap(scaledImage);
1. You can write your own FileDialog using QDialog and QDir.
(2. Compromiss: If you programm for windows using QString QFileDialog::getOpenFileName, the result MS File Dialog has a thumbnails view.
3. Compromiss: I can try to subclass and to change QFileDialog)
Bookmarks