Do QML files support UNIX shebangs?
Solved
QML and Qt Quick
-
wrote on 6 Apr 2025, 08:37 last edited by RokeJulianLockhart 14 days from now
In a
.QML
file, is#!/usr/lib64/qt6/bin/qml
syntactically acceptable as the first line, for when Ichmod +x
the file? -
In a
.QML
file, is#!/usr/lib64/qt6/bin/qml
syntactically acceptable as the first line, for when Ichmod +x
the file?wrote on 6 Apr 2025, 11:33 last edited by@RokeJulianLockhart
Have you read through https://www.ics.com/blog/whole-shebang-running-qml-files-directly ?Apparently it works? But I have to say, since QML files use
//
not#
for comment line, I don't see why or how or where it is documented.... -
1/2