[Qt-qml] QML and Unix #!/path/to/interpreter

Pertti Kellomäki pertti.kellomaki at nokia.com
Mon Apr 19 14:47:22 CEST 2010


Hi,

Is it possible to use the Unix #! convention to make QML scripts 
executable? I tried the following, but the qml viewer just complains.

helloworld.qml:

#!/usr/local/Trolltech/Qt-Creator-2.0-tech-preview/bin/qml
import Qt 4.7

Item {
   Text {
     id: helloText
     text: "Hello, world!"
     font.pointSize: 30
   }
}

-- 
Pertti




More information about the Qt-qml mailing list