PDA

View Full Version : what is the format for saving QVariantList<QVariant> in text file ?



ahmed2191
20th April 2012, 17:16
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