방법
다음 항목에서는 Qt Creator 를 사용하여 특정 작업을 수행하는 방법을 설명합니다.
UI 조정
Qt Creator UI를 탐색하거나 외관과 동작을 변경합니다.
UI 조정 방법
- Assign keyboard shortcuts
- Change the UI language
- Detach views
- Find keyboard shortcuts
- Find preferences
- Import and export keyboard shortcuts
- Preview images
- 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 Zen Mode
- Use info bars instead of pop-ups
- View Squish output
- View application output
- View call hierarchy
- View class hierarchy
- View compile output
- View file system
- View include hierarchy
- View issues
- View open documents
- View outline
- View output
- View projects
- View search results
- View type hierarchy
분석
통합 코드 분석 도구를 사용하여 메모리 누수를 탐지하고, 함수 실행을 프로파일링하며, CPU 사용량을 분석하고, 코드의 불필요한 복잡성을 제거합니다. 그 밖의 통합 도구들은 코드 커버리지를 제공하고 트레이스 이벤트를 시각화합니다.
코드 분석 방법
- Analyze CPU usage
- Analyze code with Clang-Tidy and Clazy
- Check code syntax
- Configure Clang diagnostics
- Connect to Axivion dashboard servers
- 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 global preferences for Clang tools
- 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
- Build with GN
- Configure development tools
- Configure projects for building
- Customize the build process
- Edit Qbs profiles
- Edit vcpkg manifest files
- Enable debugging
- Parse build output
- Set Qbs profile directory
- Set the default build and run directories
- Set up vcpkg package manager
- Use Development Containers
- Use compilation databases
- View compile output
CMake를 사용하여 빌드하기
CMake는 ' CMakeLists.txt ' 파일이라고 하는 간단한 구성 파일을 사용하여 소프트웨어 컴파일 과정을 제어합니다.
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
- Override CMake settings for a project
- Profile CMake code
- Read CMake documentation
- Use junction points on Windows
- View CMake project contents
qmake를 사용하여 빌드하기
qmake는 .pro 확장자를 가진 프로젝트 파일에 포함된 정보를 바탕으로 Makefile 생성을 자동화합니다.
qmake를 사용하여 빌드하는 방법
키트 관리
Qt Creator 그룹은 크로스 플랫폼 개발을 용이하게 하기 위해 특정 빌드 및 실행 설정을 키트로 구성합니다. 각 키트는 사용할 디바이스, 툴체인, Qt 버전, 디버거 명령어 등 하나의 환경을 정의하는 일련의 값으로 구성됩니다.
키트 관리 방법
프로젝트 실행
로컬 및 원격 데스크톱 시스템은 물론, 컴퓨터에 연결된 임베디드 및 모바일 장치에서 애플리케이션을 실행합니다.
애플리케이션 실행 방법
구성 Qt Creator
Qt Creator 의 기본 기능과 사전 설치된 확장 프로그램 및 플러그인을 사용합니다. 추가 확장 프로그램과 플러그인을 설치하고, 외부 도구를 사용할 수 있도록 설정합니다.
설정 방법 Qt Creator
- Activate extensions
- Collect usage statistics
- Configure the locator
- Contact Qt
- Enable and disable plugins
- Inspect internal logs
- Install extensions
- Install plugins
- Manage extensions
- Manage sessions
- Open a terminal
- Record screens
- Reset Qt Creator settings
- Run Qt Creator from the command line
- Set up screen recording
- Set up version control systems
- Turn on crash reports
- Use Qt Linguist
- Use common VCS functions
- Use external text editors
- Use external tools
프로젝트 만들기
사전 설정된 마법사나 사용자 정의 마법사를 사용하여 애플리케이션 및 라이브러리를 개발할 프로젝트를 생성합니다. 그런 다음 대상 플랫폼에서 애플리케이션을 빌드하고 실행할 수 있도록 프로젝트를 구성합니다.
프로젝트 생성 방법
- Add libraries to qmake projects
- Add subprojects to projects
- Add wizards
- Convert UI projects to applications
- Create Nimble projects
- Create Qt Interface Framework projects
- Create Qt Quick Applications
- Create Qt Quick UI Prototypes
- Create VCS repositories for new projects
- Develop Qt for Python applications
- Import an existing project
- Select the build system
- Use project wizards
파일 추가
프로젝트에 파일 추가하기.
프로젝트에 파일을 추가하는 방법
프로젝트 구성
설치 프로그램 및 프로젝트 마법사가 생성한 기본 구성을 변경하고, 특정 프로젝트에 대해 전역 기본 설정을 재정의합니다.
프로젝트 구성 방법
- Activate kits for a project
- Apply filters before scanning for tests
- Configure C++ code model
- Configure language servers for projects
- Configure projects for building
- Configure projects for running
- Edit environment settings
- Enable debugging
- 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
- Specify the environment for projects
- Use Qt Creator variables
디버그
디버거를 사용하여 애플리케이션이 실행 중인 동안 상태를 확인하십시오.
애플리케이션 디버깅 방법
- 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 디자인
' Design ' 모드의 통합 시각적 편집기를 사용하여 Qt Quick 또는 Qt Widgets 를 통해 UI를 디자인합니다.
Qt Quick UI 디자인
Qt Creator 이 기능을 사용하면 UI 양식(.ui.qml) 파일이 통합된 Qt Quick Designer에서 Design 모드로 자동으로 열립니다.
Qt Quick UI 디자인 방법
- Add assets
- Add designs from Figma to Qt
- Annotate designs
- Convert UI projects to applications
- Create Qt Quick Applications
- Create Qt Quick UI Prototypes
- Design 2D UIs
- Load placeholder data
- Navigate component files
- Open UI files in Qt Design Studio
- Preview Qt Quick UIs on devices
- Preview a QML file on desktop
- Run QML files
- Specify Qt Quick UI Prototype run settings
- Use custom fonts
- Use workspaces
UI 컴포넌트 사용하기
애플리케이션에서 Qt Qml 모듈의 Qml 유형 인스턴스를 사용하려면 해당 모듈을 임포트하십시오.
UI 컴포넌트 사용 방법
- Add bindings between properties
- Add custom properties
- Add interaction to UIs
- Add text to UIs
- Change properties
- Connect components to signals
- Create buttons
- Create component instances
- Create custom components
- Create scalable buttons and borders
- Create shapes
- Import modules
- Insert UI controls
- Make layouts scalable
- Pick colors
- Pick gradients
- Set advanced component properties
- Set basic component properties
- Use images in UIs
- Use lists and other data models
- Use preset components
애니메이션 추가
다양한 용도에 적합한 애니메이션 기법 중에서 선택하세요
UI 구성 요소에 애니메이션을 적용하는 방법
주 정부와의 협력
위젯 기반 UI 설계
Qt Creator 이 작업을 수행하면 통합 개발 환경( Qt Widgets Designer)에서 모든 .ui 파일이 자동으로 열리며, Design 모드로 실행됩니다.
위젯 기반 UI 설계 방법
기기용 개발
컴퓨터에 대상 임베디드 또는 모바일 플랫폼용 애플리케이션을 빌드하기 위한 툴체인을 설치하고, Qt Online Installer 를 사용하여 해당 플랫폼용으로 빌드된 Qt 라이브러리를 설치하십시오. 그런 다음, 해당 기기의 아키텍처에 맞는 툴체인과 Qt 버전이 포함된 키트를 추가하십시오. 가능한 경우, Qt Online Installer 에서 적합한 키트를 자동으로 생성해 줍니다. 기기를 컴퓨터에 연결하여 해당 기기에서 애플리케이션을 실행, 디버그 및 분석하십시오.
Android
Android용 Qt와 Android 도구를 설치하고, Android 기기를 컴퓨터에 연결하십시오.
Android용 개발 방법
- Add external libraries to Android packages
- Create Android packages
- Create an Android Virtual Device (AVD)
- Debug on Android devices
- Deploy applications to Android
- Edit Android manifest files
- Manage AVDs
- Manage Android NDK packages
- Manage Android SDK packages
- Set up Android development environment
- Sign Android packages
- Specify Android run settings
Bare Metal
GDB 또는 하드웨어 디버거를 사용하여, 원격 Linux 장치 플러그인에서 지원되지 않는 소형 Linux 장치에서 애플리케이션을 실행하고 디버깅합니다.
베어 메탈 장치용 개발 방법
Boot to Qt
다음 기기에서 애플리케이션을 실행, 디버그 및 분석하기 Boot to Qt 기기에서 애플리케이션을 실행, 디버그 및 분석합니다.
Boot to Qt 기기용 개발 방법
Docker
Docker 이미지를 사용하여 Docker 디바이스를 생성하고, 이를 통해 애플리케이션을 빌드, 실행 및 디버깅합니다.
Docker 디바이스용 개발 방법
iOS
iOS용 Qt와 Xcode를 설치하고, iOS 기기를 컴퓨터에 연결합니다.
iOS 기기용 개발 방법
MCU
설치 Qt for MCUs마이크로컨트롤러를 설치하고 컴퓨터에 연결합니다.
마이크로컨트롤러 개발 방법
QNX Neutrino
QNX용 Qt를 설치하고, QNX Neutrino 기기를 컴퓨터에 연결합니다.
QNX Neutrino 기기용 개발 방법
원격 리눅스
일반 리눅스 기기용 애플리케이션을 빌드하기 위한 툴체인 키트를 추가하고, 기기를 컴퓨터에 연결합니다.
원격 리눅스 기기용 개발 방법
- Add remote Linux devices
- Build applications on remote Linux devices
- Configure SSH connections
- Configure development tools
- Connect remote Linux devices
- Debug remotely with GDB
- Deploy applications to remote Linux devices
- Generate SSH keys
- Manage device processes
- Run on remote Linux devices
- Specify remote Linux run settings
VxWorks
VxWorks용 Qt를 빌드하고, VxWorks 빌드 및 실행 키트를 생성합니다.
VxWorks용 애플리케이션 빌드 방법
WebAssembly
웹용 애플리케이션을 빌드하고 웹 브라우저에서 실행하려면 Qt for WebAssembly를 설치하세요.
Windows 데스크톱
Windows App SDK의 구성 요소와 도구를 사용하여 애플리케이션을 개발합니다.
Windows 데스크톱용 개발 방법
코드 편집
코드 편집기는 의미 기반 강조 표시, 코드 구문 검사, 코드 자동 완성, 빠른 수정 등 C++ 및 QML 코드 편집에 유용한 기능을 제공합니다. 이러한 기능 중 일부는 Python과 같은 다른 프로그래밍 언어에서도 사용할 수 있으며, 해당 언어의 경우 IDE에 코드 정보를 제공하는 언어 서버가 지원됩니다.
코드 편집 방법
- Add to-do keywords
- 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
- Preview images
- Record text editing macros
- Select the current code block
- Specify Qt Quick code style
- Split the editor view
- Switch to Edit mode
- Write down notes
편집기 설정
글꼴, 색상, 강조 표시 및 들여쓰기를 변경하여 사용자의 특정 요구 사항에 맞게 코드 및 텍스트 편집기를 구성하십시오.
에디터 설정 방법
언어 서버 관리
Qt Creator 가 기본적으로 추가하는 언어 서버를 구성하거나, 언어 서버를 더 추가할 수 있습니다.
언어 서버 관리 방법
검색
증분 검색 및 고급 검색을 사용하여 현재 열려 있는 프로젝트나 파일 시스템의 파일을 검색하거나, 로케이터를 사용하여 프로젝트, 파일, 클래스, 함수, 문서 및 파일 시스템을 탐색할 수 있습니다.
검색 방법
상태 차트 편집
파일 마법사를 사용하여 기본 코드가 포함된 상태 차트 XML(SCXML) 파일을 생성하고, SCXML 편집기를 사용하여 편집합니다.
상태 차트 편집 방법
UML 스타일 모델 편집
시스템에 대한 다양한 관점을 제공하는 구조 다이어그램 및 행동 다이어그램을 사용하여 UML(Universal Modeling Language) 스타일 모델을 생성합니다.
모델 및 다이어그램 편집 방법
문서 읽기
Qt Creator 설치한 Qt 버전에 대한 참조 문서를 통합합니다. 다른 출처의 문서를 추가할 수도 있습니다.
도움말 받는 방법
테스트
코드 기반 테스트와 빌드 시스템 기반 테스트를 생성하고 실행합니다. 코드 기반 테스트는 기본 코드 모델이나 특수한 파서와 밀접하게 연동되는 특정 테스트 프레임워크에 대한 특별한 처리를 제공합니다. 빌드 시스템 기반 테스트는 어떤 테스트 프레임워크와도 독립적입니다. 이 테스트는 기본 빌드 시스템에서 직접 정보를 가져와 이를 활용하거나, 심지어 빌드 시스템 자체를 사용하여 해당 테스트를 실행합니다.
애플리케이션 테스트 방법
- 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
- View Squish output
- View test results
AI 활용
코드베이스를 이해하고, 파일 편집, 명령어 실행, 빌드 트리거 등 사용자를 대신해 작업을 수행하는 AI 에이전트와 대화해 보세요.
AI 사용 방법
Git 사용하기
Git은 Windows, Linux 및 macOS에서 사용할 수 있는 빠른 분산형 버전 관리 시스템입니다. Git을 사용하는 프로젝트에서는 Gerrit 코드 검토 도구를 사용할 수 있습니다.
Git 사용 방법
- Apply actions to commits
- Commit your first change
- Create VCS repositories for new projects
- Create and apply patches
- Git Tools
- Initialize Git repositories
- Interactive rebase
- Manage remote repositories
- Review code with Gerrit
- Set up Git
- Set up version control systems
- Show instant blame
- Stage changes
- Use Git for Windows
- Use Git with Subversion
- Use common VCS functions
- git amend
- git blame
- git branch
- git clean
- git commit
- git diff
- git fetch
- git log
- git merge
- git pull
- git push
- git reflog
- git reset
- git stash
- git status
현재 파일
현재 파일의 변경 사항 처리 방법
현재 진행 중인 프로젝트
현재 프로젝트에서 변경 사항을 처리하는 방법
로컬 저장소
로컬 저장소 관리 방법
커밋
커밋 처리 방법
원격 저장소
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.