Nominate our 2022 Qt Champions!

How to save Multiple File in

  • How Save Multiple File From One Click of the Save button?
    I can save Only one File With help of below Code Line. But I wanted to save few other file also while clicking on Save button.
    auto dialogRet = QFileDialog::getSaveFileName(this, "Save experiment data", "experiment _file_name", "Experiment folder name");

    Any Suggestion?

  • Lifetime Qt Champion


    There are several use cases possible:

    • Files already have a name, just save them
    • Fiels do not have names, save them sequentially asking for a name for each of them using QFileDialog::getSaveFileName.
    • You don't want you users to get asked several times ? Create your own dialog to do that.

  • @SGaist Thank you for answer. From your suggestion, I need to create my own Dialog box.