Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to save Multiple File in

How to save Multiple File in

Scheduled Pinned Locked Moved Unsolved General and Desktop
qfiledialogqfileqt 5.6
3 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yash001
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Y 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        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.
        Y Offline
        Y Offline
        Yash001
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved