PDA

View Full Version : Where can i learn how qml works?



tuxit
6th August 2011, 18:00
Hello,
I want to know what happens behind the scene when i wrote



Rectangle{
width:40
height:40
color:"blue"

}



Can you advise some where to read, i could not find so far
thanks

mvuori
7th August 2011, 00:42
First of all: proper capitulization of terms is the very first thing to learn if you want to be a programmer. It is not "qml", but QML, and that is nowadays Qt Quick.

Another thing is defining things. What is the "scene"? When you write something, nothing much happens. Something may happen during building of your program, something else happens at runtime.

Perhaps this page helps: http://developer.qt.nokia.com/wiki/Qt_Quick_Tutorial

wysota
7th August 2011, 13:27
Hello,
I want to know what happens behind the scene when i wrote



Rectangle{
width:40
height:40
color:"blue"

}



Can you advise some where to read, i could not find so far

You can look into Qt's source code if you want. In general a subclass of QDeclarativeItem is created and populated with property bindings or values.


First of all: proper capitulization of terms is the very first thing to learn if you want to be a programmer. It is not "qml", but QML, and that is nowadays Qt Quick.
Qt Quick and QML are two different things. The latter is a language (like C++), the former is a framework (like Qt).

tuxit
9th August 2011, 20:01
thanks i found out what i need in tutorials of official qt site.


You can look into Qt's source code if you want. In general a subclass of QDeclarativeItem is created and populated with property bindings or values.

also this sentence was very useful