5 Responses

  1. AnCoward
    AnCoward November 6, 2011 at 5:05 pm | | Reply

    I think, you should use QFile::remove( path ), otherwise looks fine to me.

  2. Kristian
    Kristian April 6, 2012 at 8:18 pm | | Reply

    Thank you! Your code works fine except that it does not handle hidden directories (very common under UNIX as directories starting with a dot). If you append QDir::Hidden to the list of flags then it handles these too :)

Leave a Reply