Results 1 to 6 of 6

Thread: QSettings , read only avaiable?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QSettings , read only avaiable?

    Well, like I said, it was an improvement idea. I didn't even mean to give a 100% ready solution.

    But alright, this changes the situation a bit. It might be easiest to check whether such application exists, go into the child group and pick version numbers:
    Qt Code:
    1. QStringList allsoftware = settings.childGroups();
    2. if (allsoftware.contains("GPL Ghostscript"))
    3. {
    4. settings.beginGroup("GPL Ghostscript");
    5. QStringList versions = settings.childGroups();
    6. qSort(versions.begin(), versions.end(), versionGreaterThan);
    7. settings.endGroup();
    8. ...
    9. }
    To copy to clipboard, switch view to plain text mode 
    This also simplifies the compare function a bit.
    J-P Nurmi

  2. The following user says thank you to jpn for this useful post:

    patrik08 (18th November 2007)

Similar Threads

  1. How to read CD with read?
    By vishal.chauhan in forum Qt Programming
    Replies: 6
    Last Post: 29th June 2007, 08:20
  2. Using QSettings to read pre-made INI file..
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 3rd May 2007, 05:36
  3. QIODevice read()
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 3rd May 2007, 00:29

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.