Friday, May 10, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4906  / 3 Years ago, sat, september 11, 2021, 5:24:13

My app require reading contents from a file. Can you do it using QML alone? Or should I use C++ for it ?


More From » application-development

 Answers
7

I suppose the answer is no. QML doesn't provide any API to access local files. You can use it in combination with either javascript to or c++ in Qt. I suppose it depends on what you're trying to open and interpret because QML also will have limited support for parsing the data you read in.



A plain text file being read through javascript



File i/o in c++


[#29992] Sunday, September 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
;