Results 1 to 3 of 3

Thread: Maintaining the list of downloads

  1. #1
    Join Date
    Jul 2016
    Posts
    53
    Qt products
    Qt4 Qt5
    Platforms
    Windows Android
    Thanks
    13

    Default Maintaining the list of downloads

    Hi,

    I am using qt5.7.

    I want to maintain an list which is downloaded, Ex: list of maps. The details like title,size,createddate, modified date etc., At some frequency, I have to check the downloaded items compares the last modified date with server.
    Should I maintain the XML to store the map details or I should use QSettings?

    Thanks In advance

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Maintaining the list of downloads

    QSettings is probably easier, you could also consider a Sqlite based database file.

    Cheers,
    _

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,343
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Maintaining the list of downloads

    Should I maintain the XML to store the map details or I should use QSettings?
    I previously posted code to read / write QSettings to XML, so you could have the best of both worlds. I don't remember the link to the post - it was about 2 years ago.

    Edit: Here. I notice there is a small typo where I didn't edit the class name to change from our internal library naming convention, so if you use this replace "CSAQtXMLSettings" with just "XMLSettings" and all will be fine.
    Last edited by d_stranz; 15th September 2016 at 17:08.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  4. The following user says thank you to d_stranz for this useful post:

    Mathan (15th September 2016)

Similar Threads

  1. How to downloads files?
    By Lycus HackerEmo in forum Qt Programming
    Replies: 12
    Last Post: 24th February 2010, 12:50
  2. Qhttp several downloads
    By cae in forum Qt Programming
    Replies: 2
    Last Post: 30th November 2009, 11:04
  3. Maintaining QTableView Selection through submitAll()
    By ChrisW67 in forum Qt Programming
    Replies: 0
    Last Post: 27th July 2009, 01:33
  4. Replies: 0
    Last Post: 30th May 2009, 06:43
  5. Maintaining square widget (plot)
    By jmsbc in forum Qwt
    Replies: 1
    Last Post: 29th May 2009, 02:18

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.