You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

santhoshv84

Beginner

  • "santhoshv84" is male
  • "santhoshv84" started this thread

Posts: 28

Location: Chennai

Occupation: Programmer

  • Send private message

1

Wednesday, May 28th 2008, 6:44am

How to show QFileDialog with preview

Hi Friends,

I am using QFileDialog in my application. I want to show this with preview of Image files in the right side.

This is the code i am using.
QString SelDir;
QFileDialog dlg;

SelDir = dlg.getOpenFileName(
this, tr("Open Image"),"C:\\", tr("Image Files (*.png *.jpg *.bmp)"));

Could any one tell me how to set any properties to show QFileDialog with Preview.
Thanks and Regards.
V. Santhosh

2

Wednesday, May 28th 2008, 8:47am

don't use static QFileDialog functions
in place subclass QFileDialog and implement your preview object
Nicolas