Trying Qt Quick on the N8

Nokia have recently announced that Qt Quick is the future for Nokia device UI’s – an extremely wise move considering the sheer power of this technology. It makes creating great looking UI’s with all of the transitions and animations expected in a ‘modern’ UI extremely simple. I’m not going into too much detail about Qt Quick here because there’s loads of info out there. What I want to do is show how you can run some Qt Quick examples on your N8 right now. This is in response to some concerns by some people about how ‘future-proof’ the N8 is, i.e. will the future UI implemented in Qt Quick be able to be handled by the N8 smoothly. Why not judge for yourself?

The first thing that needs to be done is actually installing Qt 4.7 on your N8. I have no doubt that it’s a priority for Nokia to get the in-built version updated ASAP, but for now you can simply install it yourself. Follow the instructions here, paying attention to the note I’ve given below:

http://wiki.forum.nokia.com/index.php/Qt_4.7_for_Symbian%5E3_-_developer_version

Note: Preferably install on C: – I haven’t tried on E:. You can, but it might not work. The qmlviewer SIS complains of a missing dependency – ignore it, you can just install it afterwards. Finally, the *plugin SIS files say the are ‘not compatible’. This is erroneous, again ignore it.

Once you’re done with that you’ll notice a new folder called ‘QtExamples’ in the Menu, which contains ‘qmlviewer’. This launches a file browser type UI (which is actually itself implemented in Qt Quick!) which you will use to find and open the examples. To get some nice examples you should download the Qt 4.7 SDK (it doesn’t need to even be the Symbian version – though that one is smaller to download). Here’s a link to the SDK download page:

http://qt.nokia.com/downloads (may need to click on ‘Go LGPL’)

After you do that, the examples will be in e.g. ‘C:\Qt\4.7.0\examples\declarative’ and demos will be in ‘C:\Qt\4.7.0\demos\declarative’. I would just copy both of these directories en masse to your E: drive in a new directory called something like ‘QML’. There’s no ‘install’ necessary – the QML files are simply loaded by the viewer.

Let’s try one out. After copying all of ‘demos\declarative’ to ‘E:\QML’ launch ‘qmlviewer’ and browse through the filesystem to ‘E:\QML\demos\declarative’ (or wherever you put it) and then into ‘samegame’ and open ‘samegame.qml’. And there it is. I’m not going to spoil the moment by posting a screenshot :-).

Some tips: If you want to make QML run full screen that’s in ‘Options > Settings > Full Screen’, but there’s no way to leave fullscreen (except bring up the task switcher and close qmlviewer). The ‘qmlviewer’ is actually what’s running when you hit ‘samegame.qml’, not a different app so if you exit then you’ll be thrown back to the Menu and need to browse back through again. And of course there are still some bugs so demos like ‘webbrowser’ (!!) won’t work properly it seems.

Well, I hope anyone who a) has an N8 and b) read this will give it a try. You’ll be pleased by Qt Quick and it’s performance on the N8, no doubt.

Any Q’s just pop a comment or catch me on Twitter…

Advertisements

5 Responses to Trying Qt Quick on the N8

  1. timokoola says:

    Oh, finally after some unnecessary wrestling (PEBKAC) I got this running on N8. Love the performance of QML demos. Need to see my own code in action tomorrow. Will let you know how it went.

  2. Netro says:

    Thanks for this blog post. I’m interested in Qt in N8, but I’m stuck here: To get some nice examples you should download the Qt 4.7 SDK (it doesn’t need to even be the Symbian version – though that one is smaller to download). Here’s a link to the SDK download page:
    http://qt.nokia.com/downloads (may need to click on ‘Go LGPL’)
    I don’t know what to install! Could you please help me?
    Qt libraries 4.7.1 for Symbian (265 MB)??
    or
    Qt SDK for Windows* (322 MB)??
    or
    Nokia Qt SDK 1.0.2 (September 2010) at forum.nokia.com (http://j.mp/ddZG7G)??

    Thx in advance!

  3. As I said, it doesn’t really matter. If you really just want the examples then you can use Qt Libraries 4.7.1 for Symbian. Hope that works well for you!

  4. […] Luckily, Brendan Donegan (ex Symbian Foundation) wrote about Qt in his blog, together with a link to get the correct Qt runtime for […]

  5. Netro says:

    Thanks, I’m installing it 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: