Results 1 to 2 of 2

Thread: xml + sqlite

  1. #1
    Join Date
    Nov 2006
    Posts
    96

    Default xml + sqlite

    Hi, I was wondering. Do you guys think this is a good idea (so it doesn't require a lot of work and is portable):

    I have to read and parse xml...which I have to represent to the user in some sort of QTableWidget...then the user has to be able to edit some of the data (values of elements of XML)... and then I have to store the changed data in the the XML form again.

    So my ideas is this: I would create a virtual sqlite database (that would only be present in memory), create some database, and save the XML data in the database table...then this is easily represented by QSqlRelationalTableModel which also enables me to change data...so the changed data would be stored in a database...which I would only have to parse back into xml file when I'm done.

    So, did I miss something crucial, so that the whole idea is not so good? Or is it a lot more complicated than it seems to be?

    Any thoughts are welcome.

  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: xml + sqlite

    Well if you not familiar with the model-view concept of Qt there is some work to spend to learn it but then that would be the best solution: Write your own model for your xml files and display them in a QTabelView, edit them via your own delegate class and chance all direct in your QDomDocument.

Similar Threads

  1. Qt SQLite user functions
    By cevou in forum Qt Programming
    Replies: 1
    Last Post: 10th March 2009, 19:43
  2. sqlite version in Qt
    By janus in forum Newbie
    Replies: 4
    Last Post: 5th February 2009, 14:18
  3. SQLite - check if any records are returned
    By amicitas in forum Newbie
    Replies: 1
    Last Post: 28th September 2008, 10:28
  4. SQLite
    By cyberboy in forum Installation and Deployment
    Replies: 1
    Last Post: 15th April 2008, 19:46
  5. sqlbrowser and sqlite
    By janus in forum Installation and Deployment
    Replies: 2
    Last Post: 31st March 2008, 14:59

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.