QT Quick is to QML, just as Qt is C++,qml is a new language developed in Qt, and QT Quick is a component library of this language, which contains a lot of components that can be used in QML writing.
QML Hello World
// Import Statements Section 2.4 2.2// Object Declaration part Window { true mainform { Anchors.fill:parent mousearea.onclicked: { qt.quit (); }}}
As this code shows, a QML document defines a Qml object tree, which consists of two parts: an import part, an object declaration part.
Import import statements are similar to # include in C + +, and only the relevant modules are imported to use the types and features in them. The Qtquick module is imported here, which is the set of components we chose earlier when we created the project, which contains the basic types and functions needed to create the user interface, while the window type is available in the Qtquick.window module, which creates a top-level window for the QT quick scene.
in the window Visible is the window's property, which sets whether or not the windows are displayed, and you can view all the properties and usages of a type in the Help document.
QML Learning Experience