Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Get application binary path using QML
jiangcaiyang last edited by
How can I get application binary path using QML?
AFAIK if you are not loading the QML file from qrc then you can use Qt.resolvedUrl(".") directly to get the current path but if loading from qrc then you will need to get it from C++ using QDir::currentpath() and pass it to QML.