Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Do QML files support UNIX shebangs?
Qt 6.11 is out! See what's new in the release blog

Do QML files support UNIX shebangs?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 443 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RokeJulianLockhartR Offline
    RokeJulianLockhartR Offline
    RokeJulianLockhart
    wrote on last edited by RokeJulianLockhart
    #1

    In a .QML file, is #!/usr/lib64/qt6/bin/qml syntactically acceptable as the first line, for when I chmod +x the file?

    When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

    JonBJ 1 Reply Last reply
    0
    • RokeJulianLockhartR RokeJulianLockhart

      In a .QML file, is #!/usr/lib64/qt6/bin/qml syntactically acceptable as the first line, for when I chmod +x the file?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @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 Reply Last reply
      3
      • RokeJulianLockhartR RokeJulianLockhart has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved