Qt Creator -- Detailed installation tutorial and configuration of Android compiler environment (Android studio)

Table of contents

Preface

Today we will explain how to configure the Android development environment in Qt Creator

One installation--Android studio

1. Installation package

(1) Baidu Netdisk

(2) Official website link

 2. Installation Tutorial

(1) View the reference path

2. Installation--Qt Creator

1. Version selection

(1) Version optional

(2) Blogger version

2. Qt Creator installation steps

3. Android compiler configuration

Three new projects

(1)Qt

(2)Qt Quick

(3) The difference between the two


Preface

Qt Creator is an integrated development environment (IDE) in the Qt development environment. It provides a series of powerful and easy-to-use tools to enable developers to create and manage Qt projects more conveniently. Qt Creator supports multiple platforms, including mobile platforms such as Windows, Linux, macOS, and Android . The following are the main features of Qt Creator:

1. Code auto-completion and syntax highlighting Qt Creator provides code auto-completion and syntax highlighting, which can help developers write code quickly. Code completion typically works by predicting the next step in your code (typing) based on your input and function names and parameter lists in library files.

2. Debugger and code analyzer Qt Creator provides powerful debugging functions. Developers can view variables and memory usage at runtime, as well as trace the code execution flow and call stack. In addition, Qt Creator also provides a code analyzer, which can help developers identify possible problems in the code and provide repair suggestions.

3. Project management Qt Creator provides convenient project management functions, developers can create new projects, and configure and adjust the projects. Qt Creator also provides a class scanner that automatically extracts information such as classes and skeletons from source files, and lists all classes in a class viewer, allowing you to quickly navigate to the class you need.

4. Designer and Visual Editor Qt Creator provides a designer and visual editor that can help you design your interface and create and arrange UI elements without having to deeply understand the inner workings of Qt. Therefore, even if you have no expertise in UI design and programming, you can complete UI design quickly and easily.

5. Version control integration Qt Creator has built-in support for version control tools, including Git, Subversion, Perforce and CVS, etc. Developers can manage projects more easily and collaborate to complete development tasks.

Today we will explain how to configure the Android development environment in Qt Creator


One installation--Android studio

1. Installation package

(1) Baidu Netdisk

Installation package link https://pan.baidu.com/s/1DnRGWeJt7XBTmzqHj1KRSQ?pwd=xzy0

(2) Official website link

Official website link icon-default.png?t=N4P3http:// https://developer.android.google.cn/studio

 2. Installation Tutorial

 Directly quote other bloggers' tutorials and successfully install and configure the simulator .

The most complete and detailed Android Studio installation and usage tutorial on the entire network - Zhihu Preface Before installing Android Studio, you need to install the JDK and configure the environment. My system is win11. For the specific installation method, please refer to W Kai: The most detailed installation method on the entire network. Configuration of the latest win11 java environment variables 1. Android Studio download address and version description 1. Android developer official website:… https://zhuanlan.zhihu.com/p/528196912

(1) View the reference path

It will be used later to configure Qt Creator, because QT Creator needs to use

jdk1.8 We can download jdk1.8 in Android studio. The steps are as follows

(If you are a JDK1.8 partner, you can skip it)

- Java SE Development Kit (JDK)

- Android SDK

- Android NDK


 After the download is completed, everything we need for Android studio will be complete. Just remember our installation path.


2. Installation--Qt Creator

1. Version selection

(1) Version optional

We select the version we need from the link below and install it.

QT version choose to install https://download.qt.io/archive/qt/

(2) Blogger version

Extraction code: xzy0 

Qt 5.12.9https://pan.baidu.com/s/1UhIryJt60H_q8Jdz4AcJ6w?pwd=xzy0%C2%A0

2. Qt Creator installation steps

The installation steps are similar to  Atomic Brother  's tutorial. The only difference is that in the component selection section, you need to select the Android compiler as well.

Log in to your Qt account. If you don’t have an account and password yet, please register yourself at https://www.qt.io/

 Qt's welcome installation screen

 Modify the installation directory

Check all  three Android compilers

 Select to agree to the license agreement and click Next

 When the installation is complete, check Start Qt Creator and click Finish.

3. Android compiler configuration

First go to the option interface

You need to follow my picture steps to configure and select the file path. After completion, Qt will automatically detect whether the file is correct, attach the OpenSSl file link, extract the file and add it to the corresponding Qt path: OpenSSL https: // pan .baidu.com/s/1MjA5UR6tn6rHEUuV3Yqk4w?pwd=xzy0%C2%A0
extraction code: xzy0 



Three new projects

Just select a qr project, we can see that Android Device will appear on the supported platform, which means we have successfully configured it.

(1)Qt

Qt is a cross-platform C++ application framework that can be used to develop various applications, including desktop applications, mobile applications, embedded applications, etc. It provides a complete set of class libraries and tools that allow developers to build and maintain high-quality applications faster and easier.

(2)Qt Quick

Qt Quick is a standard module of Qt, used to quickly develop modern UI interfaces and animation effects. It uses QML (Qt Meta-Object Language) language, combined with Web technologies such as JavaScript and CSS, allowing you to easily create dynamic and smooth user interfaces.

(3) The difference between the two

 1. Language differences Qt uses C++ language for development, while Qt Quick uses QML language. C++ is a general-purpose programming language that can be used to write various types of applications, including desktop, mobile, and embedded. QML is a descriptive language used to declare declarative UI interfaces and user interaction behaviors.

2. UI interface design Qt provides a set of UI components and widgets, which can be built through code. Qt Quick uses GPU-accelerated rendering technology, which allows developers to create richer and more interactive animation effects. QML enables developers to design user interfaces declaratively and add interactivity through JavaScript code.

3. Portability Qt can run on multiple operating system platforms, and provides many platform-related APIs and features. Qt Quick relies on GPU acceleration, so its portability is relatively low.

4. Learning curve: Using Qt Quick requires learning QML language and JavaScript script programming skills. Compared with using C++ to write Qt applications, the learning curve is simpler. At the same time, due to the narrower design and implementation scope of Qt Quick, developers can understand and master it faster and easier.

 The Android compiler will also appear when building the project

 Choose one of our own emulators to compile the project and run it successfully


END 


Guess you like

Origin blog.csdn.net/herui_2/article/details/130966745
Recommended