Results 1 to 3 of 3

Thread: how to remove .ini file

  1. #1
    Join Date
    May 2011
    Posts
    21
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default how to remove .ini file

    hello friends

    actually i have created an .ini file using QSettings in qt...now i have a button called reset..what i want to do is to remove the .ini file on click of reset button..but i dont understand how can i do it..i had QSetting remove() functions..but doesnt work...code i had written is..
    QSettings settings;
    QString strRegPathName("/SeeCycleApp-build-desktop/debug/Unknown Organization.ini");
    settings.remove(strRegPathName);
    CycleManager* pCycMan = new CycleManager();
    pCycMan->onInitializationValue();
    delete pCycMan;

  2. #2
    Join Date
    Aug 2009
    Posts
    52
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to remove .ini file

    Qt Code:
    1. bool QFile::remove ( const QString & fileName ) [static]
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    May 2011
    Posts
    21
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: how to remove .ini file

    can u please explain me how it can be done..


    Added after 15 minutes:


    Thanks dbzhang its done..
    Last edited by rahulgogoi; 6th June 2011 at 14:27.

Similar Threads

  1. Remove a line in a text file
    By jaca in forum Newbie
    Replies: 1
    Last Post: 18th March 2010, 22:13
  2. Can I use QRegExp to remove the extension of a file?
    By ricardo in forum Qt Programming
    Replies: 3
    Last Post: 20th May 2009, 13:54
  3. Remove Duplicate Lines in a file
    By nmuntz in forum Qt Programming
    Replies: 4
    Last Post: 12th January 2009, 00:04
  4. remove node in xml file
    By mattia in forum Newbie
    Replies: 1
    Last Post: 6th March 2008, 13:25
  5. Copy file after remove
    By windkracht8 in forum Qt Programming
    Replies: 9
    Last Post: 4th September 2006, 16:34

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.