Results 1 to 2 of 2

Thread: how to use Qsettings

  1. #1
    Join Date
    Aug 2010
    Posts
    2

    Default how to use Qsettings

    I've just started learning Qt, and now I've ran into a problem.
    I've looked through the reference documetation, but to be honest, it didn't make much sense to me.

    What I'd like to do is use QSettings to store a bunch or URLs. I figure this should not be hard, so I'm asking:

    how do I add the urls?
    how do I read them into an array or vector?
    how do I delete them all?

    I'd ask you to not laugh & be specific with answers, considering my lack of knowledge in Qt.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to use Qsettings

    In the detailed description of QSettings you will find how to use it. To write a list see QSetting::beginWriteArray(). There you will also find a sample code. For reading a list back see QSettings::beginReadArray(), also with sample code.

    If you want a more specific answer, ask more specific and show us what you have so far.

Similar Threads

  1. Value from QSettings
    By wirasto in forum Newbie
    Replies: 7
    Last Post: 14th January 2010, 18:52
  2. QSettings.
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 5th April 2009, 19:14
  3. Migrate Qt3 QSettings to Qt4 QSettings
    By hvengel in forum Qt Programming
    Replies: 3
    Last Post: 22nd February 2008, 03:21
  4. Qsettings
    By jrideout in forum Qt Programming
    Replies: 11
    Last Post: 29th June 2006, 19:21
  5. QSettings
    By incapacitant in forum Newbie
    Replies: 13
    Last Post: 25th May 2006, 11:08

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.