How To
The following topics describe how to use Qt Creator to perform a particular task.
Analyze
Qt Creator integrates code analysis tools for detecting memory leaks, profiling function execution, analyzing CPU use, and eliminating unnecessary complexity of code. Other integrated tools provide code coverage and visualize trace events.
Build and Run
Build with CMake
- Debug CMake project files
- Profile CMake code
- View CMake project contents
- Read CMake documentation
- Add CMake tools
- Edit CMake configuration files
- Complete CMake code
- Format CMake files
- Manage files in CMake projects
- Add libraries to CMake projects
Build with qmake
Debug
Design UIs
Edit Code
- Indent text or code
- Document code
- Move between open files
- Switch to Edit mode
- Move to symbols
- Locate files using the keyboard
- Perform calculations
- Jump to a function in QML code
- Paste text from clipboard history
- Sort lines alphabetically
- Enclose selected code in curly braces, parentheses, or double quotes
- Select the enclosing block in C++
- Add code snippets to the auto-complete menu
- Write down notes
- Search and replace across files using a regular expression
- Specify code style
Manage Kits
Manage Projects
- Add libraries to CMake projects
- Create vcpkg manifest files
- Specify the environment for projects
- Batch edit environment settings
- Use Qt Creator variables
- Develop Qt for Python applications
Create Projects
- Add wizards
- Select the build system
- Use project wizards
- Add subprojects to projects
- Add libraries to qmake projects
- Create VCS repositories for new projects
Create Files
- Add a license header template for C++ code
- Create files
- Create C++ classes
- Set C++ file naming preferences
- Create resource files
- Create OpenGL fragment and vertex shaders
- Create compiler explorer sessions
Configure Projects
- Specify project contents
- Open projects
- Specify dependencies
- Specify editor settings
- Activate kits for a project
Read Documentation
- Read CMake documentation
- Get help
- Find information in Qt documentation
- Add bookmarks to help pages
- Search from documentation
- Add external documentation
- Detach the help window
- Select the help start page
- Filter documentation
Use Qt Creator
- Use external tools
- Use Qt Linguist
- Use external text editors
- Enable and disable plugins
- Find settings files
- Install plugins
- Record screens
- Run Qt Creator from the command line
- Inspect internal logs
- Manage sessions
- Manage data collection
- Collect usage statistics
- Set up version control systems
- Use common VCS functions