Skip to main content
Gå till innehåll

Komma igång med Kirigami

Lär dig skapa din första program med användning av Kirigami

This tutorial will guide you through the process of creating your own convergent application using the Kirigami framework. A convergent application, in this context, means a program that people can use easily regardless of the device it is running on. If it is on a desktop computer, it will adapt to a large screen and a mouse and keyboard; if it is being used on a mobile device, it will accept input from a touchscreen and adapt to a smaller portrait screen. And so on.

Kirigami is built on top of the QML language and Qt Quick Controls 2 components provided by the Qt project. QML has built-in support for touch systems, which makes it ideal for mobile apps. Qt Quick components are reusable visual items we can use when building our applications’ interfaces. Kirigami is a set of Qt Quick components designed for creating convergent applications.

While you will use QML to create the visual part of your application, the business logic—the code that does the heavy lifting for your application’s functionality—should be written in a different language. We will also explore how to integrate our business logic with our UI in the tutorials below.

Först måste du skapa ett nytt projekt för ett valfritt språk. Introduktionen kommer att visa dig hur du gör ett litet, men funktionellt Kirigami-program.

You will be shown the basics of how to deal with colors and text in your application, and you will get acquainted with most QML components. Next, you will get acquainted with most of the QML components you might want to use and how they look like. This section won’t touch any business logic at all, only QML code.

Du får en djupdykning i mer avancerade ämnen som handlar om att manipulera data som visas i ditt program.

Slutligen presenteras Kirigami Addons, en serie livskvalitetskomponenter som du kan använda för att bland annat utforma inställningarna för ditt program.

Inställning

Inledning

Stil

Komponenter

Avancerat

Hantera data

Kirigami-tillägg

Platform Support