Reading and writing files in QML (Qt)

后端 未结 4 1854

I am trying to implement Reading and writing files in QML and came across the linked article from Nokia but have not been able to successfully use the seemingly obvious code

4条回答
  •  温柔的废话
    2020-12-19 04:46

    With the V-Play SDK, you can use the FileUtils class from QML, to access the file system on any platform.

    This would look like this:

    var success = fileUtils.writeFile("TextFiles/myFile.txt", "test text")
    

提交回复
热议问题