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. [SOLVED] How to make qt source files non writable in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How to make qt source files non writable in Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 4 Posters 4.4k 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.
  • Y Offline
    Y Offline
    yanbellavance
    wrote on last edited by
    #1

    When I debug my project in Qt Creator, it is not uncommon for the debugger to go into the Qt source code. Problem is the source code is writable and I am afraid I will paste something into there by mistake some day, save it and create problems because of it. how Can I make them read-only. I am on Linux. I have tried chmod -R 555 path/to/qt but there are still writable from the qtcreator

    EDIT: moved to tools forum, Gerolf

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      How about "sudo chmod" ?

      Chuck

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mlong
        wrote on last edited by
        #3

        Also, you don't want to use @sudo chmod -R 555 /path/to/qt@ because that will set the executable bit on everything. You want to use @sudo chmod -R a-w /path/to/qt@ if you really want to remove the write bit for everyone.

        Software Engineer
        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SimonL
          wrote on last edited by
          #4

          from using a ancient version control system (SCCS) witch marks files not checked out as read only Qt Creator will allow you to edit the files still and then come up with a warning before you save which is easy enough to accidentally let you overwrite the file so relying on the files being read only isn't always the most helpful. Also should you choose to mark the files as read only it will cause windows to recompile them every time you chmod which may not be that useful, or may not effect you.

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yanbellavance
            wrote on last edited by
            #5

            yeah i'm aware of those commands but I was actually wondering if there was a way to make them read-only directly from qt creator (the lock we see in the IDE, I was thinking it could be activated from there or something)

            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