Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Copying, removing dirs
QtWS25 Last Chance

Copying, removing dirs

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 2.9k 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.
  • F Offline
    F Offline
    flowerslab
    wrote on last edited by
    #1

    Hi all,

    Here, I have to copy a directory to another location and the removing the original directory. I found some links in http://stackoverflow.com/questions/2536524/copy-directory-using-qt that gives good explanations.

    I believe this task is very trivial task one have to do in GUI applications. So, why this function is not added as part of Qt Library or Is there any LGPL code for doing this, so one can readily use that code.

    Regards
    Sathishkumar D
    flowersopenlab.weebly.com

    1 Reply Last reply
    0
    • N Offline
      N Offline
      ngrosjean
      wrote on last edited by
      #2

      -Perhaps I don't catch you, but why not using QDir::rename ?-

      Sorry, I think you need something more complicated. Did you have only regular files on your directory?

      1 Reply Last reply
      0
      • F Offline
        F Offline
        flowerslab
        wrote on last edited by
        #3

        Yes I have only regular files only. I want to copy from system to USB Mass storage device. And then delete the things in system.

        Regards
        Sathishkumar D
        flowersopenlab.weebly.com

        1 Reply Last reply
        0
        • N Offline
          N Offline
          ngrosjean
          wrote on last edited by
          #4

          It's a perhaps a workaround, but why not using
          @QProcess::startDetached(...)@
          ... and invoke a command line to simply move your directory?

          1 Reply Last reply
          0
          • F Offline
            F Offline
            flowerslab
            wrote on last edited by
            #5

            Yes thats simple.

            Anyway for cross-platform development we need use code right.

            Regards
            Sathishkumar D
            flowersopenlab.weebly.com

            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