Results 1 to 3 of 3

Thread: [solved]Help!how to use QSettings save and read settings of QList<QTime>

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Talking [solved]Help!how to use QSettings save and read settings of QList<QTime>

    I want to save the QList<QTime> before quit the App add read it when the App run.
    Qt Code:
    1. QList<QTime> timeList;
    2. //save settings
    3. settings.setValue("timeList",timeList);//Is this right?
    4. //read settings
    5. timeList=settings.value("timeList").toList();//It does work
    6. //how can I do?
    To copy to clipboard, switch view to plain text mode 

    who can help me?
    thank you!!
    Last edited by 75543255; 2nd September 2009 at 13:40. Reason: My problem is solved

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.