View Full Version : saving into a directory
Bahar
7th February 2006, 16:30
Hi all,
Opening a file dialog box helps to open a file. What i want to do is, not to open a file but save a file into the directory that the user selects. Does "QFileDialog" class have this functionality? If not, what is the way to select a directory in which a file is to be saved?
Thanks.
zlatko
7th February 2006, 16:36
use
QFileDialog::getSaveFileName
guilugi
7th February 2006, 16:38
Sure,
Just check QFileDialog::getSaveFileName() in the docs !
It's exactly what you want :)
Guilugi.
guilugi
7th February 2006, 16:38
rhhaaa, too slow;)
Bahar
7th February 2006, 17:12
No, I could not explain the problem clearly. What i want is make the user select a directory from the dialog without writing the name of the file in the dialog. Because the program will give 3 output files whose names are formed by the program. But to ease the work of the user and see the location of the output files, i want the user to give me the directory name to collect the output files. I don't want a file name i mean. I hope this is clearer.
Thanks.
jacek
7th February 2006, 17:19
i want the user to give me the directory name to collect the output files.
Then use QFileDialog::getExistingDirectory().
Powered by vBulletin® Version 4.2.5 Copyright © 2023 vBulletin Solutions Inc. All rights reserved.