At work we use QtCreator and I am trying out Perforce for our source control. The problem I have is whenever files are modified in QtCreator they aren't automatically checked out so you have to first make the file writeable and then in P4v checkout the files to the default changelist. This can be a pain (in my last company we used Visual Studio which handled this perfectly - all we needed to do was modify the files and build so when we went in P4v the files were all there waiting in the changelist).
Is there any way to get this setup using QtCreator? The version control / Perforce tab in Options doesn't seem to give me any options to do this. 'Automatically open files when editing' seems like the closest but that doesn't work.
Any help is appreciated, thanks.
Just some further info, the docs here states that there is a Perforce sub-menu with Describe, Edit File, Opened and Pending Changes options. I can't see this at all...
http://doc.qt.nokia.com/qtcreator-2....orce-functions
Thanks
Added after 28 minutes:
As usual, after posting I immediately made progress.
In QtCreator->Tools->Options->Perforce I hadn't set my p4 client correctly. I'll list the style for my settings here for reference in case anyone else has the same problem:
P4 command: /home/path/to/p4
p4 port: xxx.xxx.xxx.xxxppp (where x makes up the IP address and p makes up the port)
p4 client: my_workspace_name
p4 user: my_username
You also need to make sure the project you're in is controlled by a Perforce server (i.e. use p4 or p4v to get the code from the server).
Once that is done, you just need to close QtCreator and re-open it and you will have the Perforce menu. Files are automatically checked out as you edit and save them.
One little inconvenience is whenever you modify a file for the first time you get the following prompt "warning: you are changing a read-only file" and have to click on the "make writable" button. Is there anyway to automatically do this?
But at least everything appears to be checking out ok.
Bookmarks