Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] QSettings on OS X 10.9 - unable to locate/clear it
Forum Updated to NodeBB v4.3 + New Features

[solved] QSettings on OS X 10.9 - unable to locate/clear it

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 7.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • crystalideaC Offline
    crystalideaC Offline
    crystalidea
    wrote on last edited by
    #1

    I have a Qt (4.8.5) based application running on OS X 10.9. The app uses QSettings class specifying app name and company. Plist file is created by QSettings under:

    ~/Library/Preferences/com.company_name.app_name.plist

    The app works pretty fine in terms of saving/restoring preferences. Then I quit the app, delete *.plist file, run the app again and voila - it restored its preferences! Based on what what file? Hot to delete it?

    PS. Was unable to find the answer in the Qt doc for QSettings class.

    Thanks

    1 Reply Last reply
    0
    • F Offline
      F Offline
      FRAUBRJ
      wrote on last edited by
      #2

      The settings files are located in the hidden directory .config located in your home directory:
      your_home/.config/compagny_name/app_name.ini

      Jean-Jacques

      1 Reply Last reply
      0
      • crystalideaC Offline
        crystalideaC Offline
        crystalidea
        wrote on last edited by
        #3

        Not true, nothing's there. only 2 folders Nokia and QtProject

        1 Reply Last reply
        0
        • F Offline
          F Offline
          FRAUBRJ
          wrote on last edited by
          #4

          It's true if you have created the setting like this
          @mySettings = new QSettings( QSettings::IniFormat, QSettings::UserScope,
          "compagnyName",
          "AppName " + QString( APP_VERSION ) );@

          Jean-Jacques

          1 Reply Last reply
          0
          • crystalideaC Offline
            crystalideaC Offline
            crystalidea
            wrote on last edited by
            #5

            I'm using default format (plist on mac), not INI

            1 Reply Last reply
            0
            • D Offline
              D Offline
              David Stiel
              wrote on last edited by
              #6

              Hi,

              In 10.9 the .plist files are being cached ("see":http://hints.macworld.com/article.php?story=20130908042828630.

              So once you have deletede the .plist the cache must be refreshed. Either log out or do "killall -u yourusername cfprefsd"

              1 Reply Last reply
              0
              • crystalideaC Offline
                crystalideaC Offline
                crystalidea
                wrote on last edited by
                #7

                thank you, this is it

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved