Results 1 to 2 of 2

Thread: QSettings in Windows

  1. #1

    Question QSettings in Windows

    I'm using Qt 4.7.0 in Windows.

    Where does it actually store settings files in Windows (XP)? And how about if define the path manually? I'm currently putting the path to: .

    Qt Code:
    1. QSettings settings(QSettings::UserScope, SETTINGS_ORGANIZATION);
    2. settings.setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath() + "MyApp");
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QSettings in Windows

    from the docs:
    On Windows, NativeFormat settings are stored in the following registry paths:

    1. HKEY_CURRENT_USER\Software\MySoft\Star Runner
    2. HKEY_CURRENT_USER\Software\MySoft
    3. HKEY_LOCAL_MACHINE\Software\MySoft\Star Runner
    4. HKEY_LOCAL_MACHINE\Software\MySoft
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. QSettings problem on windows 7
    By ivareske in forum Qt Programming
    Replies: 17
    Last Post: 13th July 2012, 07:46
  2. QSettings and Windows 7 64bit
    By JohnToddSr in forum Newbie
    Replies: 4
    Last Post: 12th May 2010, 03:01
  3. Value from QSettings
    By wirasto in forum Newbie
    Replies: 7
    Last Post: 14th January 2010, 19:52
  4. Replies: 1
    Last Post: 19th September 2008, 16:43
  5. Migrate Qt3 QSettings to Qt4 QSettings
    By hvengel in forum Qt Programming
    Replies: 3
    Last Post: 22nd February 2008, 04:21

Tags for this Thread

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.