First impressions of Qt Quick on Symbian
-
Hello,
Nokia recently released "Qt 4.7":http://labs.qt.nokia.com/2010/09/21/qt-4-7-0-now-available/ including Qt Quick. I wasn’t expecting it out until theirconference next month. So I had to kick the tires. I simply build their flickr demo and ran it on a 5800. It looks good. You’ll find it in the SDK directory look under demos/embedded/qmlflickr.
I'm sure everyone here knows this but I wanted to share a few nits which got in the way.
First remember you’ll need the Qt Libarires 4.7.0 for Symbian. On desktop systems, we use the qmlviewer to run Qt Quick programs. On Symbian, we use "QDeclarativeView":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeview.html and associate the main QML source with it.
One small rub, I needed to update the .pro file to copy the source to the mobile.
@qmlfiles.sources = $$QT_SOURCE_TREE/demos/declarative/flickr/flickr.qml
qmlfiles.path = .
commonDir.sources = $$QT_SOURCE_TREE/demos/declarative/flickr/common/
commonDir.path = .
mobileDir.sources = $$QT_SOURCE_TREE/demos/declarative/flickr/mobile/
mobileDir.path = .
DEPLOYMENT += qmlfiles commonDir mobileDir
@Is there a simpler or bester way to copy the scripts to the mobile?
-jk
-
That's the way it works for Symbian, and I don't think there is a simpler way at the moment.
If you use a snapshot Qt Creator 2.1 you can try the QML Application wizard, which will create the necessary qmake magic to allow deployment to Symbian and Maemo. It's somewhat of a hack, because qmake itself has no proper cross-platform solution for deployment at the moment.