Answer the question
In order to leave comments, you need to log in
How to write data to application resource file?
Hello toast people.
You want to write data to a file, preferably from JavaScript or QML.
I created something similar in JavaScript:
var xhr = new XMLHttpRequest();
xhr.open("POST", localFileUrl, false);
writeContent = JSON.stringify(writeContent);
xhr.setRequestHeader('Content-type', 'application/json');
xhr.setRequestHeader('Content-Length', writeContent.length);
xhr.send(writeContent);
console.log(xhr.status);
Answer the question
In order to leave comments, you need to log in
Use localStorage
doc.qt.io/Qt-5/qtquick-localstorage-qmlmodule.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question