Quick Starter
Quick入门
This chapter provides an overview of QML, the declarative user interface language used in Qt 6. We will discuss the QML syntax, which is a tree of elements, followed by an overview of the most important basic elements. Later we will briefly look at how to create our own elements, called components and how to transform elements using property manipulations. Towards the end, we will look at how to arrange elements together in a layout and finally have a look at elements where the user can provide input.
本章提供QML的概述,QML是Qt 6中使用的声明性用户界面语言。我们将了解QML语法,通过一个元素树,介绍其的基本元素。稍后,简要介绍如何创建自己的元素(称为组件),以及如何使用属性操作元素。最后,将看看如何在布局中管理元素,及用户如何输入数据。