방법
다음 항목에서는 Qt Creator 을 사용하여 특정 작업을 수행하는 방법을 설명합니다.
분석하기
통합 코드 분석 도구를 사용하여 메모리 누수를 감지하고, 함수 실행을 프로파일링하고, CPU 사용량을 분석하고, 불필요한 코드의 복잡성을 제거하세요. 다른 통합 도구는 코드 커버리지를 제공하고 추적 이벤트를 시각화합니다.
- 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
빌드 및 실행
빌드 자동화를 위한 통합 크로스 플랫폼 시스템을 사용하여 다양한 대상 플랫폼 또는 다른 컴파일러, 디버거 또는 Qt 버전에 맞게 소스 코드를 컴파일하세요. 애플리케이션을 대상 플랫폼에 배포하고 해당 플랫폼에서 실행하세요.
- 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
CMake로 빌드하기
CMake는 CMakeLists.txt 파일이라는 간단한 구성 파일을 사용하여 소프트웨어 컴파일 프로세스를 제어합니다.
- 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
qmake로 빌드하기
qmake는 확장자가 .pro 인 프로젝트 파일의 정보를 기반으로 메이크파일 생성을 자동화합니다.
애플리케이션 실행
로컬 및 원격 데스크톱 시스템과 컴퓨터에 연결한 임베디드 및 모바일 장치에서 애플리케이션을 실행하세요.
- 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
모델 및 다이어그램 만들기
시스템에 다양한 보기를 제공하는 구조화된 다이어그램과 동작 다이어그램으로 UML(Universal Modeling Language) 스타일의 모델을 만들 수 있습니다. 또는 파일 마법사를 사용하여 상용구 코드가 포함된 상태 차트 XML(SCXML) 파일을 만들고 SCXML 편집기로 편집할 수도 있습니다.
- Create UML-style models
- Create class diagrams
- Create component diagrams
- Create package diagrams
- Create state charts
디버그
디버거를 사용하여 애플리케이션이 실행되는 동안 상태를 검사할 수 있습니다.
- 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
디자인 UI
Qt Quick 또는 Qt Widgets 으로 UI를 디자인합니다. Qt Creator 는 Design 모드에서 위젯 기반 UI를 디자인할 수 있는 시각적 편집기인 Qt Widgets 디자이너를 통합합니다. Qt Quick UI의 경우 별도의 시각적 편집기를 사용하세요, Qt Design Studio또는 Edit 모드를 사용합니다.
- Create pixmaps from SVG images
- Preview Qt Quick UIs on devices
- Preview a QML file on desktop
- Run QML files
- View images
디바이스용 개발
컴퓨터에 대상 임베디드 또는 모바일 플랫폼용 애플리케이션을 빌드하기 위한 툴체인을 설치하고 Qt Online Installer 을 사용하여 해당 플랫폼용으로 빌드된 Qt 라이브러리를 설치합니다. 그런 다음 툴체인과 디바이스 아키텍처에 맞는 Qt 버전이 포함된 키트를 추가합니다. 가능하면 Qt Online Installer 에서 적합한 키트를 생성합니다. 장치를 컴퓨터에 연결하여 장치에서 애플리케이션을 실행, 디버그 및 분석합니다.
Android
안드로이드용 Qt 및 안드로이드 도구를 설치하고 안드로이드 기기를 컴퓨터에 연결합니다.
- 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
원격 Linux 장치 플러그인에서 지원하지 않는 소형 Linux 장치에서 GDB 또는 하드웨어 디버거를 사용하여 애플리케이션을 실행하고 디버깅하세요.
- 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
기기에서 애플리케이션 실행, 디버그 및 분석 Boot to Qt 장치에서 애플리케이션을 실행하고 분석하세요.
Docker
도커 이미지에서 도커 디바이스를 만들고 이를 사용하여 애플리케이션을 빌드, 실행 및 디버깅하세요.
- Add Docker devices
- Build for and run on Docker devices
- Build on Docker devices
- Configure development tools
- Set preferences for Docker devices
iOS
iOS용 Qt 및 Xcode를 설치하고 iOS 기기를 컴퓨터에 연결합니다.
MCU
설치 Qt for MCUs를 클릭하고 마이크로컨트롤러를 컴퓨터에 연결합니다.
QNX Neutrino
QNX용 Qt를 설치하고 QNX Neutrino 장치를 컴퓨터에 연결합니다.
- Add a QNX Neutrino device
- Create kits for QNX Neutrino devices
- Debug remotely with GDB
- Run on QNX devices
원격 Linux
일반 Linux 장치용 애플리케이션을 구축하기 위한 툴체인용 키트를 추가하고 장치를 컴퓨터에 연결합니다.
- 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
다양한 플랫폼의 애플리케이션 개발을 위한 SDK를 관리하세요.
- Add MCU SDKs
- Create kits for QNX Neutrino devices
- Manage Android NDK packages
- Manage Android SDK packages
- Manage Windows App SDK packages
VxWorks
VxWorks용 Qt를 빌드하고 VxWorks 빌드 및 실행 키트를 생성합니다.
- Create SSH connections to VxWorks devices
- Create kits for VxWorks devices
- Debug C++ applications on VxWorks devices
웹어셈블리
웹용 애플리케이션을 빌드하고 웹 브라우저에서 실행하려면 웹어셈블리용 Qt를 설치하세요.
코드 편집
코드 편집기는 의미 강조 표시, 코드 구문 확인, 코드 완성 및 빠른 수정 등 C++ 및 QML 코드를 편집하는 데 유용한 기능을 제공합니다. 이러한 기능 중 일부는 코드에 대한 정보를 IDE에 제공하는 언어 서버를 사용할 수 있는 Python과 같은 다른 프로그래밍 언어용 기능도 있습니다.
- 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
편집기 구성
글꼴, 색상, 강조 표시 및 들여쓰기를 변경하여 특정 요구 사항에 맞게 코드 및 텍스트 편집기를 구성하세요.
- 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
언어 서버 관리
Qt Creator 에서 기본적으로 추가하는 언어 서버를 구성하거나 더 추가할 수 있습니다.
- 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
검색
증분 및 고급 검색을 사용하여 파일 시스템에서 현재 열려 있는 프로젝트 또는 파일을 검색하거나 로케이터를 사용하여 프로젝트, 파일, 클래스, 함수, 문서 및 파일 시스템을 탐색할 수 있습니다.
- 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
키트 관리
Qt Creator 그룹은 크로스 플랫폼 개발을 더 쉽게 하기 위해 특정 설정을 키트로 빌드하고 실행합니다. 각 키트는 사용할 디바이스, 툴체인, Qt 버전, 디버거 명령어 등 하나의 환경을 정의하는 값 집합으로 구성됩니다.
- 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
프로젝트 관리
애플리케이션 및 라이브러리 개발을 위한 프로젝트를 만듭니다. 그런 다음 대상 플랫폼에서 애플리케이션을 빌드하고 실행하기 위한 프로젝트를 구성합니다.
- 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
프로젝트 만들기
사전 설정 마법사를 사용하여 프로젝트를 만들거나 사용자 지정 마법사를 추가합니다. 버전 관리 시스템에서 프로젝트를 가져올 수도 있습니다.
- 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
파일 추가
프로젝트에 파일을 추가합니다.
- 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
프로젝트 구성
설치 프로그램과 프로젝트 마법사가 생성하는 기본 구성을 변경합니다.
- 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
문서 읽기
Qt Creator 는 설치하는 Qt 버전에 대한 참조 문서를 통합합니다. 다른 소스에서 문서를 추가할 수 있습니다.
- 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
테스트
코드 기반 테스트를 생성 및 실행하고 시스템 기반 테스트를 빌드하세요. 코드 기반 테스트는 기본 코드 모델 또는 특수 파서와 밀접하게 연관된 특정 테스트 프레임워크에 대한 특별한 처리를 제공합니다. 빌드 시스템 기반 테스트는 어떤 테스트 프레임워크와도 독립적입니다. 기본 빌드 시스템에서 직접 정보를 검색하고 이를 사용하거나 심지어 빌드 시스템을 그대로 사용하여 각 테스트를 실행합니다.
- 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
Git 사용
Git은 Windows, Linux 및 macOS에서 사용할 수 있는 빠른 분산형 버전 관리 시스템입니다. Git을 사용하는 프로젝트에 Gerrit 코드 리뷰 도구를 사용할 수 있습니다.
- 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
현재 파일
현재 프로젝트
로컬 리포지토리
- 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
커밋
원격 리포지토리
사용 Qt Creator
기본 Qt Creator 기능 및 사전 설치된 플러그인을 사용합니다. 더 많은 플러그인을 설치하고 사용할 외부 도구를 구성합니다.
- 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
UI 사용
UI를 탐색하거나 모양과 동작을 변경합니다.
- 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.