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
- Add CMake tools
- Add libraries to CMake projects
- Complete CMake code
- Debug CMake project files
- Edit CMake configuration files
- Format CMake files
- Manage files in CMake projects
- Profile CMake code
- Read CMake documentation
- View CMake project contents
Build with qmake
Debug
Design UIs
Edit Code
- Add code snippets to the auto-complete menu
- Document code
- Enclose selected code in curly braces, parentheses, or double quotes
- Indent text or code
- Jump to a function in QML code
- Locate files using the keyboard
- Move between open files
- Move to symbols
- Paste text from clipboard history
- Perform calculations
- Search and replace across files using a regular expression
- Select the enclosing block in C++
- Sort lines alphabetically
- Specify code style
- Switch to Edit mode
- Write down notes
Manage Kits
Manage Projects
- Add libraries to CMake projects
- Batch edit environment settings
- Create vcpkg manifest files
- Develop Qt for Python applications
- Specify the environment for projects
- Use Qt Creator variables
Create Projects
- Add libraries to qmake projects
- Add subprojects to projects
- Add wizards
- Create VCS repositories for new projects
- Select the build system
- Use project wizards
Create Files
- Add a license header template for C++ code
- Create C++ classes
- Create OpenGL fragment and vertex shaders
- Create compiler explorer sessions
- Create files
- Create resource files
- Set C++ file naming preferences
Configure Projects
- Activate kits for a project
- Open projects
- Specify dependencies
- Specify editor settings
- Specify project contents
Read Documentation
- Add bookmarks to help pages
- Add external documentation
- Detach the help window
- Filter documentation
- Find information in Qt documentation
- Get help
- Read CMake documentation
- Search from documentation
- Select the help start page
Use Qt Creator
- Collect usage statistics
- Enable and disable plugins
- Find settings files
- Inspect internal logs
- Install plugins
- Manage data collection
- Manage sessions
- Record screens
- Run Qt Creator from the command line
- Set up version control systems
- Use Qt Linguist
- Use common VCS functions
- Use external text editors
- Use external tools
Use the UI
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.