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 do you receive a file from a user and automatically save it to a designated folder
Forum Updated to NodeBB v4.3 + New Features

How do you receive a file from a user and automatically save it to a designated folder

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 264 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.
  • V Offline
    V Offline
    vme8
    wrote on 25 Aug 2019, 19:44 last edited by vme8
    #1

    Hello people!

    How do I receive a file from a user and automatically save it to a designated file in Qt?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Grove
      wrote on 25 Aug 2019, 20:18 last edited by
      #2

      Hi and welcome,
      You have to be more specific about your question.
      What file do you receive? In what format.
      And what are the requirements out the output file and so on...

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vme8
        wrote on 25 Aug 2019, 20:51 last edited by
        #3

        Hi !

        Sorry for my English, I should ask differently.
        How do I create a function that will allow the user to choose a file (".dcm") in some folder and have it copied into another specific folder e.g. DicomFiles?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Aug 2019, 21:23 last edited by
          #4

          Hi and welcome to devnet,

          Use QFileDialog::getOpenFileName to get the file and then use QFile::copy to copy it to the destination you want.

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

          1 Reply Last reply
          2

          1/4

          25 Aug 2019, 19:44

          • Login

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