Qt Creator: new file permissions and EOL



  • 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?


  • Lifetime Qt Champion

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.