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

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 260 Views
  • 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 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 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 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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

          • Login

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