Results 1 to 1 of 1

Thread: what is the format for saving QVariantList<QVariant> in text file ?

  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default what is the format for saving QVariantList<QVariant> in text file ?

    i am doing an application and i need to save the QVariantList<QVariant> list in a qml file so i can load it in qml every time i start the application

    to make it more clear i read qpoints from qml and store them in a qvariantlist in c++ so the next step is to save it in text file i use the format(that's how i write it to file.qml)

    import ARHandbook 1.0;
    x:["1 2" , "1 3"]

    but it doesnt load in qml so what is the right format to store it with ? it gives this error unable to assin qvariantlist to void
    Last edited by ahmed2191; 20th April 2012 at 16:34.

Similar Threads

  1. Replies: 1
    Last Post: 25th May 2011, 19:25
  2. Saving Text and Images as a file
    By rleojoseph in forum Qt Programming
    Replies: 2
    Last Post: 15th February 2011, 09:15
  3. Saving rich text to XML file
    By been_1990 in forum Newbie
    Replies: 5
    Last Post: 2nd August 2010, 23:46
  4. Problems saving a text file
    By aarelovich in forum Qt Programming
    Replies: 3
    Last Post: 27th September 2009, 14:39
  5. Saving image in jpeg format failed
    By febil in forum Qt Programming
    Replies: 5
    Last Post: 23rd April 2009, 11:33

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.