QtQuick – How to develop on the N900
Article Metadata
One cool thing about QtQuick that I realized today is that it should be possible to develop for you device, on your device. And i can now say that yes, it's only a Hello World app, but at no point was a PC involved in making it (except for research in how to do it).
So my device is an N900 and i don't know if this is possible on Symbian - if you can get a terminal for example. So here's how to write a QtQuick HelloWorld app on your N900 and run it.
Prerequisites
- Make sure you are using PR1.3 which includes QT 4.7. If not, update your device.
- Make sure you have the Maemo.org and Maemo Extras catalogs enabled in Application Manager
- Get the 'QTQuick 1.0 Compatibly plug-in. This can be found in the Development section under Application Manager.
- Get rootsh to enable root access through the terminal - this can be got through the Application Manger.
- Get the QML Viewer - to do this open x-term. Type the following commands:
- sudo gainroot //To Give the user root access
- apt-get update //To update the catalogs
- apt-get install qt4-declarative-qmlviewer //to install QML Viewer
- Get an editor - I used PyGTKEditor from the Development section of Application Manager.
Creating the app
- Open your editor.
- Enter the code from the QtQuick - Basic Types Tutorial. You can use Fn (the blue arrow) + Sym/CTRL to bring up the extra symbols like { } | [ ] and ~.
- Save the file somewhere memorable - e.g QtQuick/Tutorials, and call the file helloworld.qml
- Either
- Open x-term
- enter cd QtQuick/Tutorial
- enter qmlviewer helloworld.qml
- Or
- Open QmlViewer from the menu shortcut
- Click on the title bar and choose Open
- Browse to helloworld.qml
And that's it.
Originally created by bluechrism
at Micronokiadev


(no comments yet)