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
Forum Updated to NodeBB v4.3 + New Features

How to save Multiple File in

Scheduled Pinned Locked Moved Unsolved General and Desktop
qfiledialogqfileqt 5.6
3 Posts 2 Posters 1.5k 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 30 Apr 2018, 21:08 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Apr 2018, 21:12 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 30 Apr 2018, 23:37
      1
      • S SGaist
        30 Apr 2018, 21:12

        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 30 Apr 2018, 23:37 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

        1/3

        30 Apr 2018, 21:08

        • Login

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