QML2 Books / Tutorials?
Anyone have suggestions on either a good book or set of tutorials for QML2? There doesn't seem to be any good resources located in a single place and I end up spending a lot of time hunting around. I'm just learning QML2 and am hoping that someone has put together a good set of tutorials.
sierdzio Moderators last edited by
Qt documentation and examples is a good start. QML1 is almost the same, you can use it's tutorials, too.
martin_ky last edited by
Unfortunatelly currently all the Qt books out there are discussing at most pre-QML era Qt 4.x. Advanced Qt Programming by Mark Summerfield is a good book if you want to learn some advanced widgets techniques.
You are probably best off looking for QML learning resources in the qt-project docs and wiki:
and in your Qt SDK installation source code's subdir:
and various interesting blogs:
Might want to look in this section:
Thanks for the reply. I had looked at the examples/tutorials on the Qt site, but unfortunately, many of them look uncompleted. For example, if you look at the "samegame" example, all of the code examples are missing (for example:https://qt-project.org/doc/qt-5.0/qtquick/qtquick2-tutorials-samegame-samegame1.html). I haven't had a chance to look at the wiki yet. I'll take a look there.
martin_ky last edited by
You're right, the online docs seems to be broken at some places. You should be able to view the documentation offline as well. Start your Qt Creator, go to Help -> Contents, then go to Qt 5.0 Reference Documentation -> Tutorials and Examples in the content tree. The docu seems OK there.
Thanks, I'll take a look.
[quote author="ggalt" date="1365447251"] I had looked at the examples/tutorials on the Qt site, but unfortunately, many of them look uncompleted. For example, if you look at the "samegame" example, all of the code examples are missing[/quote]
This has been a problem for quite a while, 5.0.1 was supposed to fix the doc, but it didn't, looks like Qt is still running behind schedule, thankfully not as bad as with 5.0.
Take a look at those, they are more complete:
chrisadams last edited by
The 5.0-stable snapshot documentation is far less (although still a little bit) broken than the main page docs which are regenerated at random intervals.
The qml demos link still seems broken in that snapshot though, as does the type registration docs from the QML module docs. What can I say: qdoc is terrible, and the doc team doesn't like hardlinking doc sections via explicit page links, since they want DITA XML output to work properly, and that leaves us between a rock and a hard place as far as documentation is concerned.
As martin_ky said, the offline docs might be better.
In the future perhaps, hopefully, for 5.0 and 5.0.1 doc building failed for me (and not just me) and only HTML docs were generated, and worse than the online version - the missing snippets are still missing, plus there is entire articles that are missing too.