Qml

From LinuxMCE
Revision as of 06:50, 1 June 2011 by Langstonius (Talk | contribs) (LinuxMCE User Interface)

Jump to: navigation, search

QML is a declarative language designed to describe the user interface of a program: both what it looks like, and how it behaves. In QML, a user interface is specified as a tree of objects with properties.

LinuxMCE User Interface and QML

One of the immediate goals of the Linuxmce project is to move its ui to a more flexible toolkit for a variety of reasons. It has been decided that Qt / Qt quick (QML) will be the main toolkit in which this new user interface will be constructed. With that in mind, there are some core principles and reading one should become familiar with to maximize your time.

Core Reading

These documents are not all that QML encompasses, but they represent a solid start in understanding its basis. For LinuxMCE related documentation, you will need to look to the code and start picking apart relevant parts as you proceed.

Key Software

  • Qt Creator 2.0.1
  • LinuxMCE 1004

Example

QML Light Switch http://svn.linuxmce.org/trac.cgi/browser/branches/LinuxMCE-0810/src/QML_Light_Switch

This is an example of a device that employs the following:

  • A device template, #2181 that describes what commands it has, its device data, and other information. You can see many examples in your own 1004 install.
  • DCEGen and Sql2Cpp to generate the device template defines and code for it to communicate to the DCErouter.
  • A custom c++ device to mimic a light switch. In this case, its a device that also doubling as a QML UI test.
  • A QML user interface that could be completly different and still do the same things as long as it hooked into the proper event

Connecting the Dots

DCE to QT

QT to QML