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?
Forum Update on Monday, May 27th 2025

Do QML files support UNIX shebangs?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 131 Views
  • 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.
  • R Offline
    R Offline
    RokeJulianLockhart
    wrote on 6 Apr 2025, 08:37 last edited by RokeJulianLockhart 14 days from now
    #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.

    J 1 Reply Last reply 6 Apr 2025, 11:33
    0
    • R RokeJulianLockhart
      6 Apr 2025, 08:37

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

      J Online
      J Online
      JonB
      wrote on 6 Apr 2025, 11:33 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
      • R RokeJulianLockhart has marked this topic as solved on 6 Apr 2025, 12:34

      1/2

      6 Apr 2025, 08:37

      • Login

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