방법
다음 항목에서는 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 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
- 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 MCP client
- 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 인 프로젝트 파일의 정보를 기반으로 메이크파일 생성을 자동화합니다.
qmake로 빌드하는 방법
키트 관리
Qt Creator 그룹은 크로스 플랫폼 개발을 더 쉽게 하기 위해 특정 설정을 키트로 빌드하고 실행합니다. 각 키트는 사용할 디바이스, 툴체인, Qt 버전, 디버거 명령어 등 하나의 환경을 정의하는 값 집합으로 구성됩니다.
키트 관리 방법
프로젝트 실행
로컬 및 원격 데스크톱 시스템과 컴퓨터에 연결한 임베디드 및 모바일 장치에서 애플리케이션을 실행하세요.
애플리케이션을 실행하는 방법
- Configure projects for running
- Run Python applications
- Run in Qt Application Manager
- Run on QNX devices
- Run on remote Linux devices
- Run on the desktop
- Set the default build and run directories
- Specify Qt Quick UI Prototype run settings
- Specify a custom executable to run
- Use MCP client
- View application output
구성 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
- Use MCP client
UI 디자인
Design 모드에서 통합 시각적 편집기를 사용하여 Qt Quick 또는 Qt Widgets 으로 UI를 디자인합니다.
UI를 디자인하는 방법
디자인 Qt Quick UI
Qt Creator 는 통합된 Qt Quick 디자이너에서 Design 모드의 UI 양식(.ui.qml) 파일을 자동으로 엽니다.
Qt Quick UI를 디자인하는 방법
- Add assets
- 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 디자이너에서 Design 모드의 모든 .ui 파일을 자동으로 엽니다.
위젯 기반 UI를 디자인하는 방법
디바이스용 개발
컴퓨터에 대상 임베디드 또는 모바일 플랫폼용 애플리케이션을 빌드하기 위한 툴체인을 설치하고 Qt Online Installer 을 사용하여 해당 플랫폼용으로 빌드된 Qt 라이브러리를 설치합니다. 그런 다음 툴체인과 디바이스 아키텍처에 맞는 Qt 버전이 포함된 키트를 추가합니다. 가능하면 Qt Online Installer 에서 적합한 키트를 생성합니다. 장치를 컴퓨터에 연결하여 장치에서 애플리케이션을 실행, 디버그 및 분석합니다.
Android
안드로이드용 Qt 및 안드로이드 도구를 설치하고 안드로이드 기기를 컴퓨터에 연결합니다.
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 장치용 개발 방법
iOS
iOS용 Qt 및 Xcode를 설치하고 iOS 기기를 컴퓨터에 연결합니다.
iOS 기기용 개발 방법
MCU
설치 Qt for MCUs를 클릭하고 마이크로컨트롤러를 컴퓨터에 연결합니다.
마이크로컨트롤러용 개발 방법
QNX Neutrino
QNX용 Qt를 설치하고 QNX Neutrino 장치를 컴퓨터에 연결합니다.
QNX Neutrino 장치용 개발 방법
원격 Linux
일반 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
- 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용 애플리케이션 빌드 방법
웹어셈블리
웹용 애플리케이션을 빌드하고 웹 브라우저에서 실행하려면 웹어셈블리용 Qt를 설치하세요.
Windows 데스크톱
Windows 앱 SDK의 구성 요소와 도구를 사용하여 애플리케이션을 개발하세요.
Windows 데스크톱용 개발 방법
코드 편집
코드 편집기는 의미 강조 표시, 코드 구문 확인, 코드 완성 및 빠른 수정 등 C++ 및 QML 코드를 편집하는 데 유용한 기능을 제공합니다. 이러한 기능 중 일부는 코드에 대한 정보를 IDE에 제공하는 언어 서버를 사용할 수 있는 Python과 같은 다른 프로그래밍 언어용 기능도 있습니다.
코드 편집 방법
- 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
- Use GitHub Copilot
- Use Qt AI Assistant
- Write down notes
편집기 구성
글꼴, 색상, 강조 표시 및 들여쓰기를 변경하여 코드 및 텍스트 편집기를 특정 요구 사항에 맞게 구성할 수 있습니다.
편집기를 구성하는 방법
언어 서버 관리하기
Qt Creator 에서 기본적으로 추가하는 언어 서버를 구성하거나 더 추가할 수 있습니다.
언어 서버를 관리하는 방법
검색
증분 및 고급 검색을 사용하여 파일 시스템에서 현재 열려 있는 프로젝트 또는 파일을 검색하거나 로케이터를 사용하여 프로젝트, 파일, 클래스, 함수, 문서 및 파일 시스템을 탐색할 수 있습니다.
검색하는 방법
상태 차트 편집
파일 마법사를 사용하여 상용구 코드가 포함된 상태 차트 XML(SCXML) 파일을 만들고 SCXML 편집기로 편집할 수 있습니다.
상태 차트를 편집하는 방법
UML 스타일 모델 편집
시스템에 다양한 보기를 제공하는 구조 및 동작 다이어그램으로 UML(범용 모델링 언어) 스타일 모델을 만들 수 있습니다.
모델 및 다이어그램을 편집하는 방법
문서 읽기
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
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
- Review code with Gerrit
- Set up version control systems
- Show instant blame
- Stage changes
- Use Git for Windows
- Use Git with Subversion
- Use common VCS functions
- git am
- 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.