Development/Tutorials/Plasma5

< Development‎ | Tutorials
Revision as of 11:28, 23 July 2014 by Mart (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

QML 2.0

Plasmoids that use the QML 2.0 declarative language to describe their user interface while having the logic of the applet, in JavaScript.

This is now the recommended method of creating plasmoids, where possible. The plasmoid, or applet serves as the visualization for the data which a Plasma::DataEngine contains.

It allows easily the declaring of an interface and to easily create things like ListViews with native Plasma theming. It is what Plasma is leaning the most towards, especially in the Mobile, MediaCenter shells.

Getting Started
Creating and running your first plasmoid in QML 2.0
Basic List Plasmoid
Make a QML 2.0 ListView which displays basic text objects as items. Utilizes native Plasma theming and animations.
API Reference
The QML 2.0 Plasmoid API. Useful for referencing what is available in the runtime, what are the differences with the pure JavaScript ScriptEngine, the differences between pure Qt 5.2, QML 2.0 and Plasma 2, and as a study aid for the tutorials above.

Applet provides

applets can say in their metadata desktop file what features they provide: this is use to build an UI to switch an applet at runtime with other applet that provide the same feature. see List of known Provides

Themes

Creating a Plasma Theme Quickstart
A quick guide to creating your first Plasma theme
The Plasma Theme Structure In Detail
A comprehensive guide to the contents of a Plasma SVG theme, including configuration options, wallpapers, on-disk layout, names of all standard SVG files and every element in them.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal