This is just a quick blog reply to requests to show the code of the Calculator of my previous blog post. I would gladly share the source in a nice zip as well, but maemo.org wiki doesn't allow zip uploads (DOH!), so you'll have to accept badly commented wiki page.
Here be the WIKI.
Showing posts with label qml. Show all posts
Showing posts with label qml. Show all posts
Sunday, January 03, 2010
Tuesday, December 29, 2009
QML Hello World (or calculate world)
Some thoughts about QML
QML reminds me a lot of Adobe Flex on Flash - my personal favourite tool for creating anything. Only difference is that QML is more suited for application development, as it allows full access to all system components - and is easily extensible with pretty much any normal qt components.
Read more on the snapshot:
http://qt.nokia.com/doc/qml-snapshot/
and from Kenneths excellent blog on the subject:
http://kenneth.christiansen.googlepages.com/DUI.html
Anyway, intro aside, I have also started doing a bit of coding now on QML and I really love it. It has nice separation of the declarative part (QML) and the logic part (either qt components or javascript). You can easily embed javascript to the qml code, but the clever guys at qt labs have made sure that you can only have tiny snipplets there. A welcome separation.
What has also been fun is that I have done ALL the coding on the pygtkeditor, so no coding on the mac, and all the coding on n900. Well, I did work on some button gfx a bit on mac, but that's it. Painting is not coding ;)
Anyway, take a look at the result of less than 400 lines of code. And the code is clean, sweet and easy to extend. Check out those transitions! They are 10 lines of code for the advanced, and about the same to get the fancy glow effect done to the buttons.
What I am really eagerly waiting for is a chance to see a proper flash-like editor for qml.
QML reminds me a lot of Adobe Flex on Flash - my personal favourite tool for creating anything. Only difference is that QML is more suited for application development, as it allows full access to all system components - and is easily extensible with pretty much any normal qt components.
Read more on the snapshot:
http://qt.nokia.com/doc/qml-snapshot/
and from Kenneths excellent blog on the subject:
http://kenneth.christiansen.googlepages.com/DUI.html
Anyway, intro aside, I have also started doing a bit of coding now on QML and I really love it. It has nice separation of the declarative part (QML) and the logic part (either qt components or javascript). You can easily embed javascript to the qml code, but the clever guys at qt labs have made sure that you can only have tiny snipplets there. A welcome separation.
What has also been fun is that I have done ALL the coding on the pygtkeditor, so no coding on the mac, and all the coding on n900. Well, I did work on some button gfx a bit on mac, but that's it. Painting is not coding ;)
Anyway, take a look at the result of less than 400 lines of code. And the code is clean, sweet and easy to extend. Check out those transitions! They are 10 lines of code for the advanced, and about the same to get the fancy glow effect done to the buttons.
What I am really eagerly waiting for is a chance to see a proper flash-like editor for qml.
Subscribe to:
Posts (Atom)