I need to delete all files in a directory using Qt.

All of the files in the directory will have the extension ".txt".

I don't want to delete the directory itself.

Does anyone know how I can do this? I've looked at QDir but am having no luck.

Edit
Report