Thanks. Will try it out.
Just one more doubt. Can we get a list of the number of directories present?
I was looking through and got to know that QDir:irs might do the trick, but am not so sure about it.