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. Removing a non empty folder..
Forum Updated to NodeBB v4.3 + New Features

Removing a non empty folder..

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.2k 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.
  • B Offline
    B Offline
    BibekKumar
    wrote on last edited by
    #1

    How to remove a folder, which is not empty ..

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shanek
      wrote on last edited by
      #2

      http://doc-snapshot.qt-project.org/5.0/qdir.html#removeRecursively

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BibekKumar
        wrote on last edited by
        #3

        There is no removerecursively() function for QDir()

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shanek
          wrote on last edited by
          #4

          Sorry it's new in 5.0.
          You can implement it yourself using QDirIterator.

          See the code for removeRecursively here:
          https://qt.gitorious.org/qt/qtbase/blobs/master/src/corelib/io/qdir.cpp#line1485

          And create something similar in application code using QDir, QFile and QDirIterator

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BibekKumar
            wrote on last edited by
            #5

            its a vry long method ..
            but i want codes which is easy to understand ..

            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