Getting Started with Qt
Install Qt
You can install the Qt Framework and tools by using an online or offline installer or by building the source packages yourself.
In the online installer, you can select commercial or open source versions of Qt, tools, and Add-On components(扩展部件,扩展组件) to install. Using the online installer requires signing in(注册,签到,登记) to your Qt Account. The installer retrieves(取回,检索,重新登记) the license attached to the account from a server and provides a list of available components corresponding to the license.
An offline installer is a single package that contains all of Qt and Add-Ons relevant for a target platform. Users with a commercial license can either sign in with their Qt account or with their Qt license key during the installation process. The license key is available in the Qt Account Web portal.
You can download Qt 5 installers from the Downloads page.
You can use the Qt installers to download and install the following components:
- Qt libraries, prebuilt for a particular development platform (operating system and compiler) Qt库,为特定开发平台预编译(操作系统和编译器)
- Qt Creator integrated development environment (IDE)
- Reference Documentation and examples
- Qt in source code form (needed only if you want to build the framework and tools yourself)
- Add-On components that are relevant for different platforms
After downloading, start the installer like any executable on the development platform.
To run the installer, you need a Qt Account. You can use your Qt Account credentials([krə'dɛnʃlz]
认证信息、证明文件) to sign-in to all Qt services, including the forums and wiki. If you do not already have a Qt Account, you can create one during the installation process.
To complete the installation, select the components that you want to install and follow the instructions of the installation program.
Use the Maintenance Tool under
Platform Requirements
Developing applications on different platforms are covered in the platform pages.
- Android、iOS、Windows、Linux/X11、macOS、Windows Runtime
For more information, visit the supported platforms page.
Create Your First Applications
Learn the basics of Qt and Qt Quick development by following two tutorials [tjuː'tɔːrɪəl]
that illustrate how to create simple applications and build and run them on target platforms:
- Getting Started Programming with Qt Widgets 窗口部件
- Getting Started Programming with Qt Quick
For a more thorough (adj. 彻底的;十分的;周密的)walkthrough(预排,预排工作,演练) of the different aspects of developing applications with Qt 5, see the QML Book. It focuses on Qt Quick, but also provides the information needed to use QML together with C++.
Explore Qt
We invite you to explore the rest of Qt. We prepared overviews which help you decide which APIs to use and our examples demonstrate how to use them.
To view a list of all Qt examples, visit the List of Qt Examples page.
Setting Up Projects
- Qt Quick Projects
- Qt Widget Projects
- Configuring Projects
Developing with Qt Creator
- Building for Multiple Platforms
- Running on Multiple Platforms
- Deploying to Mobile Devices
- Connecting Mobile Devices
- See more
Reference Documentation
- Qt Overviews - list of topics about application development
- Examples and Tutorials - code samples and tutorials
- Qt Reference Pages - a listing of C++ and QML APIs
Qt Project Community
Qt's vibrant (adj. 振动的;充满生气的;响亮的;战栗的)and active community site, http://qt.io houses a wiki, a forum, and additional learning guides and presentations.