PDA

View Full Version : Purge a list of address



amiref
24th March 2011, 12:05
Hi
I have a QList< QFileInfo > so that every QFileInfo is an address of one file in my system . I want to purge this QList so that this QList only include the address of file with .txt format .
please help me .
thanks

JohannesMunk
24th March 2011, 12:14
You should be able to figure out both how to check if a file has a certain extension (suffix) and how to remove items from a list by reading the documentation of the two classes you mentioned.

If you come along any specific problem, post back!

Joh