Meego Wiki
Views
From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Available tutorials)
 
(28 intermediate revisions not shown)
Line 1: Line 1:
-
This is a place for QML tutorials (more like cookbook recipes) I'm ([[User:Elliot]]) writing as I learn QML.
+
This is a place for QML tutorials I ([[User:Elliot]]) am writing as I learn QML.
-
My approach to learning a language is to attempt to build a realistic application, with all the trappings that entails. I'm doing the same thing while learning QML.
+
== Why? ==
-
There is plenty of documentation for QML/Qt Quick: see http://doc.qt.nokia.com/4.7/qtquick.html, for example. But there is little of it which is specific to MeeGo. And the "developer story" is there, but not documented thoroughly (it probably will be shortly).
+
Why am I writing this? After all, there is already plenty of documentation for QML/Qt Quick: for example, http://doc.qt.nokia.com/4.7/qtquick.html.
-
* [[QML: creating a transparent window]]
+
My reasons:
-
* [[QML: keyboard navigation]]
+
-
* [[QML: internationalisation]]
+
-
Eventually they should probably go into a /QML/ namespace.
+
* There is not much QML documentation specific to MeeGo.
 +
* The QML on MeeGo "developer story" is not that clear to me yet.
 +
* As I'm learning, I write things down anyway. So I may as well publish it, as other people might find it useful too.
-
You're probably going to want to look at the QML elements documentation while you go through these recipes. You can find it at http://doc.qt.nokia.com/4.7/qdeclarativeelements.html.
+
There will doubtless be overlap with other tutorials/blogs/official docs, but having all this stuff in one place, tailored for MeeGo, might be useful to others.
 +
 
 +
Having said all that, the existing QML docs are the best place to start learning QML if you've never used it before.
 +
 
 +
== Available tutorials ==
 +
 
 +
* [[QML/Creating a transparent window]]: how to run a QML application in a semi-transparent window.
 +
* [[QML/Keyboard navigation]]: how to create a QML application which is navigable by keyboard alone.
 +
* [[QML/Internationalisation]]: how to internationalise a QML application.
 +
* [[QML/Full-screen applications]]: how to configure a QML application to fill the screen, run maximized, or run "truly" full-screen.
 +
* [[QML/QSqlTableModel ]]: how to use QSqlTableModel in QML (under construction).
 +
* [[QML/QGraphicsGeoMap]]: how to use a QGraphicsGeoMap in QML.
 +
* [[QML/Get GPS data]]: How to get GPS data into your QML application
 +
* [[QML/FileSelector]]: A file selector dialog following the Qt components styling
 +
 
 +
== Tips ==
 +
 
 +
* You can open your qml -file with Qt Creators Design -editor. It is really useful for sorting out possible errors in the code.
 +
** A lot faster than compiling the code and running in the simulator/N950 just to get a blank black screen.
 +
** Gives you straight link into the problematic code line
 +
 
 +
== Other documentation ==
 +
 
 +
You're probably going to want to look at the QML elements documentation while you go through these tutorials. You can find it at http://doc.qt.nokia.com/4.7/qdeclarativeelements.html.
http://doc.qt.nokia.com/4.7/ might come in useful, too, if you want to learn more about Qt and go through the official tutorials.
http://doc.qt.nokia.com/4.7/ might come in useful, too, if you want to learn more about Qt and go through the official tutorials.
 +
 +
[[Category:tutorial]]
 +
[[Category:qml]]

Latest revision as of 09:45, 27 July 2011

This is a place for QML tutorials I (User:Elliot) am writing as I learn QML.

Contents

Why?

Why am I writing this? After all, there is already plenty of documentation for QML/Qt Quick: for example, http://doc.qt.nokia.com/4.7/qtquick.html.

My reasons:

  • There is not much QML documentation specific to MeeGo.
  • The QML on MeeGo "developer story" is not that clear to me yet.
  • As I'm learning, I write things down anyway. So I may as well publish it, as other people might find it useful too.

There will doubtless be overlap with other tutorials/blogs/official docs, but having all this stuff in one place, tailored for MeeGo, might be useful to others.

Having said all that, the existing QML docs are the best place to start learning QML if you've never used it before.

Available tutorials

Tips

  • You can open your qml -file with Qt Creators Design -editor. It is really useful for sorting out possible errors in the code.
    • A lot faster than compiling the code and running in the simulator/N950 just to get a blank black screen.
    • Gives you straight link into the problematic code line

Other documentation

You're probably going to want to look at the QML elements documentation while you go through these tutorials. You can find it at http://doc.qt.nokia.com/4.7/qdeclarativeelements.html.

http://doc.qt.nokia.com/4.7/ might come in useful, too, if you want to learn more about Qt and go through the official tutorials.

Personal tools