I am new to Qt/Qml and javascript.
Let's say I have a javascript file which contains a table of parameters. The javascript file is used in Qml and it is located in the application directory. e.g. C:\Program Files\QtApp\the_table.js.
If end customer installed the Qt app, they want to manually edit the javascript file and use it with the installed application. ( No need to recompile the app source code). How can I make it work?
I have tried to update the javascript file manually, but when I try to open the app again, the "updated entry" in the javascript file is not displayed in the application.
-----------------8<-----------------------
Updates:
- Javascript file included in the qml resource will not be editable by end user without recompiling the app.
- Javascript in qml will hold mostly the logic, not the data.
- It's better to use the JSON file to store the configuration data that can be modified by the end user.
- Qt 5.0 and newer version has support for reading JSON file. QJsonDocument.