[Qt-qml] "Hello World" C++ Model on QML Flow?
Charley Bay
charleyb123 at gmail.com
Wed Oct 6 21:24:41 CEST 2010
I'm *very* impressed with QML -- this is absolutely
the "right" way to build GUIs in this world of sophisticated
user expectation on varied platforms.
Annoyingly, this means I've got to totally re-wire my
brain for how to think about GUIs. I'm willing to do it --
I'm sold -- but this has been a really painful couple of
weeks as I try to figure out "the QML way".
Is there a "hello world" application using a QML Flow
that's hooked up to a C++ QAbstractItemModel?
For example, I expect it to only be a few lines of code
to glob files in a directory (variable name length) in
a C++ model and display them in a QML Flow, with
item background color based on attributes (e.g., read
only, file extension/type). I just can't seem to get it,
though ... (I think I have the model but my Flow never
displays anything).
I'm sure it's me. I'm just having trouble getting started...
I've read all the QML documentation in the 4.7 release
(Win Commercial), but could use more ... book?
Snippets site? Suggestions?
I'll get it, because I'm absolutely convinced this is
the "right* way to go. I just haven't gotten my "mind right"
yet ...
--charley
More information about the Qt-qml
mailing list