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.
- Analyze code with Clang-Tidy and Clazy
- Configure Clang diagnostics
- Profile CMake code
- Specify Valgrind settings for a project
Build and Run
- Activate custom output parsers
- Add custom output parsers
- Configure projects for building
- Edit Qbs profiles
- Edit vcpkg manifest files
- Enable debugging
- Explore compiler code
- Use compilation databases
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
Run applications
Create Models and Diagrams
- Create UML-style models
- Create class diagrams
- Create component diagrams
- Create package diagrams
- Create state charts
Debug
Design UIs
Edit Code
- Apply quick fixes
- Bookmark code
- Complete code
- Document code
- Edit Markdown files
- Enclose code in brackets or quotes
- Indent text or code
- Insert multiple cursors
- Inspect the code model
- Jump to a function in QML code
- Locate files using the keyboard
- Move between files
- Move to symbols
- Parse files
- Paste text from clipboard history
- Perform calculations
- Search and replace across files using a regular expression
- Select the enclosing block in C++
- Split the editor view
- Switch to Edit mode
- Write down notes
Configure Editors
- Add code snippets to the auto-complete menu
- Beautify source code
- Change editor colors
- Change text encoding
- Edit MIME types
- Edit like in Vim
- Select line ending style
- Specify code style
Manage Language Servers
- Add a Java language server
- Add generic language servers
- Configure Python language servers
- Configure language server workspace
- Inspect language clients
- Turn on QML Language Server
Manage Kits
Manage Projects
- Add libraries to CMake projects
- Batch edit environment settings
- Configure projects for building
- Configure projects for running
- Create vcpkg manifest files
- Develop Qt for Python applications
- Enable debugging
- Import an existing project
- Run 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 Nimble projects
- Create Qt Quick Applications
- Create Qt Quick UI Prototypes
- 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
- Configure language server workspace
- Exclude files from to-do lists
- Open projects
- Share project settings
- Specify clangd settings
- Specify dependencies
- Specify editor settings
- Specify project contents
- Specify settings for quick fixes
- Speficy Clang tools settings
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 Qt Creator
- 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