Results 1 to 2 of 2

Thread: Purge a list of address

  1. #1
    Join Date
    Mar 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Purge a list of address

    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

  2. #2
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Purge a list of address

    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

Similar Threads

  1. Replies: 1
    Last Post: 23rd April 2011, 17:33
  2. List View with sections for alphabetialy sorted list
    By woodtluk in forum Qt Programming
    Replies: 4
    Last Post: 12th October 2010, 11:50
  3. Replies: 1
    Last Post: 31st July 2009, 20:03
  4. how can i get IP address
    By dognzhe in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2009, 05:27
  5. IP Address
    By rajveer in forum Qt Programming
    Replies: 2
    Last Post: 11th November 2008, 08:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.