as title. Thanks.
I think you can try any of the ways
A. Create a plugin for qml in Qt and import that to qml and use the plug in to open the file
Just exploring method A.
I think method B is preferred. But also wonder if it is possible for a Java script to operate a file like opening/editing?