Results 1 to 2 of 2

Thread: OSX QSettings IniFormat SystemScope saving inside the bundle

  1. #1
    Join Date
    Jun 2009
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default OSX QSettings IniFormat SystemScope saving inside the bundle

    Hi... I'm working on OSX, does somebody now why the following code creates an .ini file inside my bundle???

    Qt Code:
    1. QSettings mySettings(QSettings::IniFormat, QSettings::SystemScope, QApplication::ApplicationName, CProgrVersion::GetOrganizationName());
    2. mySettings.setValue("key", "xyz");
    3. mySettings.sync();
    To copy to clipboard, switch view to plain text mode 

    This creates me the file /Applications/myApp.app/Contents/myDomain.org/myApp.ini ...
    According to the doc, this code should store my settings under /Library/Preferences/myDomain.org/myApp.ini

    Any help would be really appreciated.

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 106 Times in 103 Posts

    Default Re: OSX QSettings IniFormat SystemScope saving inside the bundle

    I haven't used mac for a while, but that's how it should be if I recall correctly ( /Library/... ).

    Try rebuilding the project (I know it's obvious but It's only thing that I can think of).

Similar Threads

  1. Replies: 1
    Last Post: 15th April 2010, 20:05
  2. QSettings Inside QWebView?
    By Jick in forum Newbie
    Replies: 2
    Last Post: 27th February 2010, 05:03
  3. Trying to deploy a bundle
    By afflictedd2 in forum Qt Programming
    Replies: 2
    Last Post: 8th May 2009, 20:39
  4. Set QSettings::IniFormat globally?
    By Slip Nine in forum Newbie
    Replies: 2
    Last Post: 10th June 2006, 22:43
  5. QSettings::SystemScope in Linux
    By jpn in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2006, 16:43

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
  •  
Qt is a trademark of The Qt Company.