Qt Creator Manual | Using Perforce

Qt Creator Manual 4.11.0

Using Mercurial ◦ Using Subversion

# Using Perforce

Perforce is a fast software configuration management system developed by Perforce Software.

Since Qt Creator 4.9, the Perforce plugin is disabled by default. To enable it, select Help > About Plugins > Version Control > Perforce, and then restart Qt Creator.

## Configuring Perforce

In the Perforce options, you can specify workspace details: P4 user, P4 client, and P4 port. To specify the details individually for several projects, use configuration files instead. Create a `p4config.txt` configuration file for each project in the top level project directory.

## Editing Files

In addition to the standard version control system functions described in Using Common Functions, you can select Tools > Perforce > Edit File to open a file for editing within the client workspace. By default, files are automatically opened for editing. To disable this feature, select Tools > Options > Version Control > Perforce, and then deselect the Automatically open files when editing check box.

To list files that are open for editing, select Tools > Perforce > Opened.

To group files for commit, select Tools > Perforce > Pending Changes.

To view information about changelists and the files in them, select Tools > Perforce > Describe.

By default, you are prompted to confirm that you want to submit changes. To suppress the prompt, select Tools > Options > Version Control > Perforce, and then deselect the Prompt on submit check box.