QT Official Tutorials Translation--QML applications

Source: Internet
Author: User

Attached website: http://qt-project.org/doc/qt-5/qmlapplications.html


QML applications

QML is a declarative language that provides a set of interfaces to describe visual components and their interactions and dependencies. It is a highly readable language and is designed to enable components to connect to each other in a dynamic way. It also makes it easy to reuse components and create custom user interfaces. Using the Qtquick module, designers and developers can easily use the QML to create a fluid animation user interface and connect these interfaces to the back-end C + + library.


What is QML?

QML is a user interface specification and programming language. It allows developers and designers to create high-performance, smooth animations and visual effects for applications. QML provides a highly readable, declarative, JSON-like syntax that supports binding with JavaScript expressions to achieve dynamic properties.

The qt QML section details the QML language and its basics, see the qt QML section documentation for QML language insights.

The following pages contain more QML information:

First Steps with QML --As these examples begin to use QML

The QML Reference --QML structure and function reference

QML Coding Convention --QML Coding style

Glossary of QML Terms --qml Terminology


What is Qt Quick?

Qt Quick is the QML type and functional standard library, which includes visual types, interaction types, animations, models and views, particle effects and shading effects. A QML application developer can use all of these features through an import statement.

The Qt Quick section introduces the QML library in Qtquick. For an in-depth look at the various QML types and other features offered by Qt Quick, refer to the qt quick Module documentation


QML User Interfaces

To create a custom graphical user interface, Qt quick adds visual type, animation type, and other QML types to the standard QML type. Since the QT Creator 2.7 release,QT Quick Designer has been integrated into QT Creator and supports Qtquick 2.

Visual types in QML--qml visual Type

Respondingto user input in QML--QML user enters the appropriate

Animations in QML--qml animation

Displaying Text in QML text display for--QML

Layouts in QML --qml Layout

Style and Theme support --style and theme support

integrating JavaScript in QML --integrated JavaScript in QML

Scalability -- scalability


Buttons, Menus, and other Controls

For a basic set of UI operations, theQt Quick Controls module implements a number of controls like buttons, menus, and windows. These controls mimic a variety of local behaviors on different platforms like Windows, OS X,linux, and so on.

Qt Quick Controls Overview --QT Quick Controls Overview

Styles --style

Dialogs --dialog box

Layouts --Layout


Special Effects

Some QT modules provide several types of special effects for creating applications, and their respective pages contain more information about these special usages.

particle Effects --Particle effects

Graphical Effects --effects for creating graphical components


View Web Content in QML applications

WebView is a type of qml that is used to render and display dynamic Web content. It can load a URL or HTML string. Read more WebView and see the relevant routines to access the Qt WebKit page.


Sensors, gestures, and Touch Interfaces

The Qt Sensors module allows applications to read information from sensors like accelerometers and inclinometer. There is an identical qml API on different platforms and can be extended by C + +.

Qt Sensors QML Types --QT sensor QML type

Qt Sensors Examples --QT sensor routines

compatibility Map --Lists the support levels for different platforms


Multimedia Content

The Qt Multimedia module enables applications to handle multiple media files through a convenient QML collection class. These QML types can be extended in C + +.

Multimedia --Multimedia

Audio Overview--Overview

Video Overview --Overview

Camera Overview--Overview of cameras

Radio Overview --Radio Overview

Qt Audio Engine -for playback and content management of three-dimensional sound


Mobile Devices

Some QT modules provide the corresponding QML APIs for network and mobile devices. These QML types can access Bluetooth, near field communication (NFC), and GPS-enabled devices.

Qt positioning --QT Location

Qt bluetooth--qt bluetooth®

Qt NFC --qt near Field communication

For more information, go to the Networking and Connectivity and Mobile APIs page.


Code Samples and Demos

To learn more about the use of QML code, here are some sample code that shows how some QML types are used. In addition, there are some examples of how QML code can be used in applications.

Getting Started Programming with Qt Quick --a tutorial demonstrating how to create a simple text editor using QML

Qt Quick Examples and Tutorials --QT quick examples and tutorials


Advanced Application Development Topics

Deploying QML Applications --QML Application Deployment

performance considerations and Suggestions --Considerations and recommendations for performance

Internationalization and Localization --Internationalization and localization

Testing and debugging

prototyping with Qmlscene --qmlscene Prototypes

Debugging QML Applications --QML application Debugging

Qt Quick test:qml Unit testing Framework --QT Quick test: QML Unit Test Framework


Other QML Modules

QT Quick provides only the basic visual type and provides most of the QT functionality to QML through other modules. If you need to use the functionality of these modules, you can refer to their QML documentation.

This all QML APIs by module contains a list of all the QML modules in Qt 5.

Release Notes and porting guide

Qt QML Release Notes

Qt Quick Release Notes

Porting QML applications to Qt 5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.