Do QML files support UNIX shebangs?
Solved
QML and Qt Quick
-
wrote 10 days ago last edited by RokeJulianLockhart 4 Jun 2025, 08:39
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 10 days ago 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.... -
2/2