Kako
Sljedeće teme opisuju kako koristiti Qt Creator za obavljanje određenog zadatka.
Analizirajte
Koristite integrirane alate za analizu koda za otkrivanje curenja memorije, profiliranje izvršavanja funkcija, analizu korištenja CPU-a i uklanjanje nepotrebne složenosti koda. Drugi integrirani alati pružaju pokrivenost koda i vizualiziraju događaje u tragu.
- Analyze CPU usage
- Analyze code with Clang-Tidy and Clazy
- Check code syntax
- Configure Clang diagnostics
- Create compiler explorer sessions
- Detect errors in C++ code with Cppcheck
- Detect memory leaks with Heob
- Detect memory leaks with Memcheck
- Explore compiler code
- Local analysis with Axivion
- Profile CMake code
- Profile QML applications
- Profile function execution
- Run Valgrind tools on external applications
- Set up code coverage from Coco
- Specify Valgrind settings for a project
- View Axivion static code analysis results
- View code coverage reports from Coco
Izgradi i pokreni
Koristite integrirane međuplatformne sustave za automatizaciju izgradnje kako biste kompajlirali svoj izvorni kod za različite ciljne platforme ili s različitim kompajlerima, otklanjivačima pogrešaka ili verzijama Qt-a. Deployirajte aplikacije na ciljne platforme i pokrenite ih tamo.
- Activate custom output parsers
- Add custom output parsers
- Build for many platforms
- Configure development tools
- Configure projects for building
- Customize the build process
- Edit Qbs profiles
- Edit vcpkg manifest files
- Enable debugging
- Parse build output
- Set the default build and run directories
- Use compilation databases
Izgradite pomoću CMakea
CMakeLists.txt CMake kontrolira proces kompilacije softvera koristeći jednostavne konfiguracijske datoteke, nazvane CMakefile datoteke.
- 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
- Override CMake settings for a project
- Profile CMake code
- Read CMake documentation
- View CMake project contents
Izgradi pomoću qmakea
qmake automatizira generiranje Makefilea na temelju informacija iz projektne datoteke s ekstenzijom . .pro.
Pokrenite aplikacije
Pokrenite aplikacije na lokalnim i udaljenim desktop sustavima, kao i na ugrađenim i mobilnim uređajima koje povezujete s računalom.
- Configure projects for running
- Run Python applications
- Run in Qt Application Manager
- Run on many platforms
- Set the default build and run directories
- Specify a custom executable to run
Kreirajte modele i dijagrame
Izradite modele u stilu Universal Modeling Language (UML) sa strukturiranim i ponašajnim dijagramima koji nude različite prikaze vašeg sustava. Ili upotrijebite čarobnjak za datoteke za izradu State Chart XML (SCXML) datoteka s gotovim kôdom i uređujte ih pomoću SCXML uređivača.
- Create UML-style models
- Create class diagrams
- Create component diagrams
- Create package diagrams
- Create state charts
Otklanjanje pogrešaka
Koristite otklanjivače pogrešaka za pregled stanja vaše aplikacije dok radi.
- Add breakpoints
- Attach the debugger to running applications
- Attach the debugger to starting processes
- Debug C++ applications on VxWorks devices
- Debug CMake project files
- Debug crashed processes on Windows
- Debug on Android devices
- Debug remotely with CDB
- Debug remotely with GDB
- Examine complex values in Debug views
- Inspect basic Qt objects
- Load core files to the debugger
- Manage breakpoints
- Set data breakpoints
- Show tooltips for simple values
- Start and debug an external application
- Start debugging
- Start debugging from the command line
- Step through code
Dizajn korisničkih sučelja
Dizajnirajte korisničke sučelje koristeći Qt Quick ili Qt Widgets. Qt Creator integrira vizualni uređivač Qt Widgets Designer za dizajniranje sučelja temeljenih na widgetima u načinu rada Design. Za Qt Quick sučelja koristite zaseban vizualni uređivač, Qt Design Studio, ili način rada Edit.
- Create pixmaps from SVG images
- Preview Qt Quick UIs on devices
- Preview a QML file on desktop
- Run QML files
- View images
Razvijajte za uređaje
Instalirajte alatni lanac za izradu aplikacija za ciljanu ugrađenu ili mobilnu platformu na računalu i upotrijebite Qt Online Installer za instalaciju Qt biblioteka izgrađenih za tu platformu. Zatim dodajte kit s alatnim lancem i verzijom Qt-a za arhitekturu uređaja. Kad je moguće, Qt Online Installer stvara odgovarajuće kitove za vas. Povežite uređaje s računalom kako biste na njima pokretali, otklanjali pogreške i analizirali aplikacije.
Android
Instalirajte Qt za Android i Android alate te povežite Android uređaje s računalom.
- Create an Android Virtual Device (AVD)
- Debug on Android devices
- Manage AVDs
- Manage Android NDK packages
- Manage Android SDK packages
- Set up Android development environment
Bare Metal
Pokrenite i otklonite greške u aplikacijama na malim Linux uređajima koje ne podržava dodatak za udaljene Linux uređaje koristeći GDB ili hardverski otklanjivač grešaka.
- Add Bare Metal devices
- Set up EBlink
- Set up J-Link
- Set up OpenOCD
- Set up St-Link
- Set up the uVision IDE
Boot to Qt
Pokrenite, otklonite pogreške i analizirajte aplikacije na Boot to Qt uređajima.
Docker
Stvorite Docker uređaje iz Docker slika i koristite ih za izgradnju, pokretanje i otklanjanje pogrešaka u aplikacijama.
- Add Docker devices
- Build for and run on Docker devices
- Build on Docker devices
- Configure development tools
- Set preferences for Docker devices
iOS
Instalirajte Qt za iOS i Xcode te povežite iOS uređaje s računalom.
Mikrokontroleri
Instaliraj Qt for MCUs, i povezati mikrokontrolere s računalom.
QNX Neutrino
Instalirajte Qt za QNX i povežite QNX Neutrino uređaje s računalom.
- Add a QNX Neutrino device
- Create kits for QNX Neutrino devices
- Debug remotely with GDB
- Run on QNX devices
Daljinski Linux
Dodajte komplete za lance alata za izradu aplikacija za generičke Linux uređaje i povežite uređaje s računalom.
- Add remote Linux devices
- Build applications on remote Linux devices
- Configure SSH connections
- Configure development tools
- Connect remote Linux devices
- Debug remotely with GDB
- Generate SSH keys
- Manage device processes
- Run on remote Linux devices
SDK-ovi
Upravljajte SDK-ovima za razvoj aplikacija na različitim platformama.
- Add MCU SDKs
- Create kits for QNX Neutrino devices
- Manage Android NDK packages
- Manage Android SDK packages
- Manage Windows App SDK packages
VxWorks
Izgradite Qt za VxWorks i kreirajte VxWorks build i run kitove.
- Create SSH connections to VxWorks devices
- Create kits for VxWorks devices
- Debug C++ applications on VxWorks devices
WebAssembly
Instalirajte Qt za WebAssembly kako biste izradili aplikacije za web i pokrenuli ih u web-pregledniku.
Uredi kod
Uređivač koda nudi korisne značajke za uređivanje C++ i QML koda, kao što su semantičko isticanje, provjera sintakse koda, dopunjavanje koda i brze ispravke. Neke od tih značajki dostupne su i za druge programski jezike, poput Pythona, za koji je dostupan language server koji IDE-ovima pruža informacije o kodu.
- Apply quick fixes
- Automatically format QML/JS files
- Bookmark code
- Compare files
- Complete code
- Create Lua scripts
- Document code
- Download highlight definitions
- Edit Markdown files
- Edit properties of QML types
- Enclose code in brackets or quotes
- Highlight code blocks
- Indent text or code
- Insert multiple cursors
- Inspect the code model
- Locate files using the keyboard
- Move between files
- Move in QML code
- Move to symbols
- Parse files
- Paste and fetch code snippets
- Paste text from clipboard history
- Perform calculations
- Record text editing macros
- Select the current code block
- Specify Qt Quick code style
- Split the editor view
- Switch to Edit mode
- Use GitHub Copilot
- Use Qt AI Assistant
- Write down notes
Konfigurirajte uređivače
Konfigurirajte uređivač koda i teksta kako bi odgovarali vašim specifičnim potrebama promjenom fontova, boja, isticanja i uvlačenja.
- Add code snippets to the auto-complete menu
- Beautify source code
- Change editor colors
- Change text encoding
- Configure C++ code model
- Edit MIME types
- Edit like in Vim
- Select line ending style
- Specify code style
Upravljanje poslužiteljima jezika
Konfigurirajte poslužitelje jezika koje Qt Creator dodaje prema zadanim postavkama ili dodajte još njih.
- Add a Java language server
- Add generic language servers
- Configure Python language servers
- Configure QML Language Server
- Configure language servers for projects
- Inspect language clients
Pretraži
Koristite postupno i napredno pretraživanje za pretraživanje trenutno otvorenih projekata ili datoteka na datotečnom sustavu ili upotrijebite lokator za pregledavanje projekata, datoteka, klasa, funkcija, dokumentacije i datotečnih sustava.
- Find symbols
- Navigate with locator
- Rename symbols
- Search and replace using a regular expression
- Search in current file
- Search in projects or file systems
- Turn on Silver Searcher
Upravljanje kompletima
Qt Creator Grupe grade i pokreću specifične postavke kao kitove kako bi olakšale razvoj na više platformi. Svaki kit sastoji se od skupa vrijednosti koje definiraju jedno okruženje, kao što su uređaj, alatni lanac, verzija Qt-a i naredba za otklanjanje pogrešaka.
- Activate kits for a project
- Add Bare Metal devices
- Add CMake tools
- Add Nim compilers
- Add Qt versions
- Add compilers
- Add custom compilers
- Add debuggers
- Add kits
- Create kits for QNX Neutrino devices
- Manage MCU kits
- Open projects
Upravljanje projektima
Kreirajte projekte za razvoj aplikacija i biblioteka. Zatim konfigurirajte projekte za izgradnju i pokretanje aplikacija na ciljanim platformama.
- Add libraries to CMake projects
- Configure projects for building
- Configure projects for running
- Create vcpkg manifest files
- Develop Qt for Python applications
- Edit environment settings
- Enable debugging
- Import an existing project
- Open projects
- Run Python applications
- Set the default build and run directories
- Specify the environment for projects
- Use Qt Creator variables
Kreirajte projekte
Koristite čarobnjake za postavke za izradu projekata ili dodajte prilagođene čarobnjake. Također možete uvoziti projekte iz sustava za kontrolu verzija.
- Add libraries to qmake projects
- Add subprojects to projects
- Add wizards
- Create Nimble projects
- Create Qt Interface Framework projects
- Create Qt Quick Applications
- Create Qt Quick UI Prototypes
- Create VCS repositories for new projects
- Select the build system
- Use project wizards
Dodaj datoteke
Dodajte datoteke u projekte.
- Add a license header template for C++ code
- Add translation files
- Add wizards
- Create C++ classes
- Create OpenGL fragment and vertex shaders
- Create files
- Create resource files
- Set C++ file naming preferences
Konfigurirajte projekte
Promijenite zadane konfiguracije koje instalacijski programi i čarobnjaci za projekte stvaraju.
- Activate kits for a project
- Apply filters before scanning for tests
- Configure C++ code model
- Configure language servers for projects
- Create VCS repositories for new projects
- Exclude files from to-do lists
- Link projects with GitLab
- Open projects
- Override CMake settings for a project
- Share project settings
- Specify Clang tools settings
- Specify build and run settings
- Specify clangd settings
- Specify dependencies
- Specify editor settings
- Specify project contents
- Specify settings for quick fixes
Pročitajte dokumentaciju
Qt Creator integrira referentnu dokumentaciju za Qt verzije koje instalirate. Možete dodati dokumentaciju iz drugih izvora.
- 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
Test
Kreirajte i pokrenite testove temeljene na kodu te testove temeljene na sustavu izgradnje. Testiranje temeljeno na kodu nudi posebno rukovanje određenim okvirima za testiranje koji su čvrsto povezani s temeljnim modelima koda ili specijaliziranim analizatorima. Testiranje temeljeno na sustavu izgradnje ne ovisi o nijednom okviru za testiranje. Ono dohvaća informacije izravno iz temeljnog sustava izgradnje i koristi ih ili čak sam sustav izgradnje za izvođenje odgovarajućih testova.
- Add tests to existing test projects
- Apply filters before scanning for tests
- Build and run tests
- Connect to Squish Server
- Create Boost tests
- Create CTest Based Tests
- Create Catch2 tests
- Create Google tests
- Create Qt Quick tests
- Create Qt tests
- Create Squish test suites
- Manage Squish test suites and cases
- Select Squish AUTs
Koristite Git
Git je brz decentralizirani sustav kontrole verzija dostupan za Windows, Linux i macOS. Možete koristiti alat Gerrit Code Review za projekte koji koriste Git.
- Commit your first change
- Create VCS repositories for new projects
- Git Tools
- Initialize Git repositories
- Set up version control systems
- Use Git for Windows
- Use Git with Subversion
- Use common VCS functions
Trenutna datoteka
Trenutni projekt
Lokalni repozitoriji
- Create and apply patches
- Interactive rebase
- git am
- git branch
- git clean
- git commit
- git diff
- git log
- git merge
- git reflog
- git reset
- git stash
- git status
Obavlja
Daljinski repozitoriji
Koristite Qt Creator
Koristite osnovne značajke Qt Creator a i unaprijed instalirane dodatke. Instalirajte dodatne dodatke i konfigurirajte vanjske alate za korištenje.
- Activate extensions
- Collect usage statistics
- Contact Qt
- Enable and disable plugins
- Inspect internal logs
- Install extensions
- Install plugins
- Manage extensions
- Manage sessions
- Record screens
- Reset Qt Creator settings
- Run Qt Creator from the command line
- Set up version control systems
- Turn on crash reports
- Use Qt Linguist
- Use common VCS functions
- Use external text editors
- Use external tools
Koristite korisničko sučelje
Pregledajte korisničko sučelje ili promijenite njegov izgled i ponašanje.
- Assign keyboard shortcuts
- Change the UI language
- Detach views
- Find keyboard shortcuts
- Find preferences
- Set high DPI scaling
- Set the number of recent files shown
- Show and hide sidebars
- Show and hide the main menu
- Show task list files in issues
- Switch UI themes
- Switch between modes
- Use info bars instead of pop-ups
- View output
Copyright © The Qt Company Ltd. and other contributors. 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.