Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2010

    Question Where the QSettings save ?

    I use QSettings to save something referred user. And I use the code like this
    QSettings settings("organizationName", "applicationName"); settings.setValue(...);
    And I found if I uninstall the app from phone , the QSettings is not deleted .And after I install it again It is also the same settings with last time. I want to remove the settings too if uninstall the app. So where the QSettings file is saved ? Why the settings is not removed after the app uninstalled.
    Any suggest will be appreciate. Thank you.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Oulu, Finland

    Re: Where the QSettings save ?

    You can use the QSettings constructor variant that takes in a file name to supply it with a path that is guaranteed to be in your private data cage (\private\<uid> directory). For example:
    QSettings settings(QApplication::applicationDirPath().append(QDir::separator()).append("settings.ini"),
    Your applications private data cage is automatically removed when uninstalling the application.

Similar Threads

  1. childGroup order in QSettings
    By Grinchman in forum Qt
    Replies: 2
    Last Post: 2010-12-16, 11:37
  2. Replies: 1
    Last Post: 2010-10-10, 22:05
  3. QSettings cann't work
    By qsun06 in forum [Archived] Qt General ( Qt技术)
    Replies: 2
    Last Post: 2010-06-08, 05:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts