Results 1 to 2 of 2

Thread: QSettings a level beyond "Application" to store per-profile information

  1. #1
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    54
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QSettings a level beyond "Application" to store per-profile information

    I am using QSettings to store a lot of data for the user. I would like to have profiles in the application however, such that the user can choose a different environment on startup. I know I can just do "beginGroup" on the QSettings, but that has two drawbacks:
    1. on Linux the one file for setting start to get very large
    2. I can't use the QSettings default constructor, all users must know the profile name

    I was thinking that I could simply abuse the ApplicationName and append the profile to it. That however won't be ideal on windows as it won't create the desired registry hierarchy.

    Is there some way I can easily do this?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QSettings a level beyond "Application" to store per-profile information

    Why not use xml files?

Similar Threads

  1. Replies: 3
    Last Post: 15th February 2010, 17:27
  2. Store several "QNetworkReply" in a QMap !
    By fitzy in forum Qt Programming
    Replies: 3
    Last Post: 29th November 2009, 11:50
  3. QSettings to save multiple "workspaces"
    By Bitruder in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2009, 21:56
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

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.