Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator: new file permissions and EOL
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: new file permissions and EOL

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 997 Views 1 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.
  • SkwaraS Offline
    SkwaraS Offline
    Skwara
    wrote on last edited by
    #1

    Hello,

    I'm using Qt Creator 4.0.2 on Windows.

    When I create a C++ header or source file it gets 0755 permissions and Windows EOL style (checked in Cygwin). This is a problem for me and I would rather have 0644 permissions and Linux EOL style. I have tried creating custom wizard with a sample file set up correctly, but Qt Creator seems to ignore permissions and EOL style even with "isBinary" set to "true" in generator. I understand that it's not exactly Qt Creator problem, because POSIX permissions are changed every time on copying through windows. A possible solution would be a way to set up custom commands to execute on file after it has been created. I'm not sure if this is currently possible.

    Then I found out that even if I set permissions and EOL style after the file has been created, Qt Creator updates permissions after every save. Good news is that at least EOL style stays unchanged after saving. I suppose that it copies the file and permissions are being changed for the same reason as above.

    I'm looking for a way to setup Qt Creator to create files with specified permissions and EOL style and then to prevent it from changing permissions after every save. DO you see a solution or at least a good, automated workaround?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That's rather a question you should bring to the Qt Creator mailing list You'll find there Qt Creator's developers/maintainers. This forum is more user oriented.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

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