I would like to save a file using QFileDialog::getSaveFileName
without allowing to choose the path or at least hide folders.
Reading the doc I tried to set QFileDialog::ShowDirsOnly
as an option like this:
QString fileName = QFileDialog::getSaveFileName(this,
tr("..."), path, tr("... (*.txt)"), 0, QFileDialog::ShowDirsOnly);
but it's not working or it's not what I want.
Is there a way to save a file without being able to seek a location in the system and using QFileDialog::getSaveFileName
please? Or do I need to build my own QFileDialog where I will just write the name of the file?
I hope someone will understand my problem.