how to show previewof the selected images in the native dialog
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.
Re: how to show previewof the selected images in the native dialog
You can use a QLabel to show the image. Use QLabel::setPixmap to set the image.
pseudo code is :
Quote:
scaledImage = image.scaled(); // small size of original image
label.setPixmap(scaledImage);
Hope this helps
Re: how to show previewof the selected images in the native dialog
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)