Comments, Code and Qt. Some words about the wonderful world of software engineering

23Jan/121

Sunday evening fun: Windows Phone 7 styled progress indicator in QML

Posted by kypeli

I started a new coding hobby project today. But instead of actually getting very far with the productive part of the project I got side tracked on something fun I wanted to try out (don't you just love when that happens 🙂 That's not possible when coding at work...). I wanted to share this day's outcome with you. Let me introduce this humble video show casing a Windows Phone 7 styled loading indicator in QML 🙂 You can get the source code for this small thing (GPL licensed) from here: https://gitorious.org/qtquicktests/qtquicktests/trees/master/wp7-loading.

Technorati Tags: , , ,

12Dec/117

Porting MeeGo Qt Components apps to Symbian

Posted by kypeli

Of course I don't have all the answers to what needs to be done for any given MeeGo Qt Component based application to have it running on Symbian, but I think I have three general actions that need to be done when porting an app from MeeGo to Symbian; have it run with the resources, make the code compile and tweak the UI. Thanks to Symbian Annan both MeeGo and Symbian run Qt 4.7.4 with Qt Quick and Qt Components which is of course the reason why this kind of porting is even possible with a reasonable effort. As I wrote in my earlier blog post, even though both Symbian and MeeGo run Qt and Qt Components, it's not perfect. I think too much manual work still has to be done, but it's a reasonable effort and when you read through my hints, I think the tasks ahead become clearer.

Technorati Tags: , , , , ,

3Jul/1122

Deploying Qt and Qt Quick applications on Windows

Posted by kypeli

I recently had to deploy a Qt Quick application on a Windows machine that did not have Qt installed explicitly on it. I think this is a pretty common use case that can cause quite some headache. You basically have two options if you want to deploy (or install) your Qt or Qt Quick based application to Windows. Either you can use the Windows Installer service directly or use some free or commercial utility to create a MSI based installer application that will deploy your application on Windows. Alternatively or at least as a first step you can package your application into a ZIP, or some other, package together with the necessary libraries that the application depends on. This is what I did and what I am going to explain here. When the package is extracted on the target machine, your Qt or Qt Quick application can be run from that directory just by launching the .exe file. Pretty neat. Below I will explain some important points on how you want to create the package that you want to distribute your Qt application in. In my case I deployed a Qt Quick application that used Qt/3D and QtWebKit.

Technorati Tags: , , ,

26Jun/1114

What is the developer story for the Nokia N9?

Posted by kypeli

The MeeGo Harmattan powered Nokia N9 has now been out for a couple of days. Nokia's developer pages has a whole section dedicated to the Nokia N9 and we also have some great UX guidelines available. But as an app developer I am really just interested in writing my code and deploying it on to the device or the emulator. I already wrote earlier that the "official" developer story around Qt SDK 1.1.2 did not work for me and I am still wondering if this approach will work really well in Windows and OS X. I have also read the blog post from Nokia Developer's Kate Alhola on how to develop Qt Component apps for MeeGo Harmattan in Ubuntu without Scratchbox. This lead me to conclude that Nokia now has at least three ways how developer can develop apps for the Nokia N9 and all of them have some issues.  All of these approaches are also described on pages that are hosted and maintained by Nokia which adds to the confusion.

Technorati Tags: , , , , ,

21May/1110

OAuth2 explained with Qt Quick

Posted by kypeli

...or how to do Facebook authentication with Qt Quick. In this blog post I will give you an idea how OAuth2 works and how to gain access to Facebook from your Qt Quick application using OAuth2. I could have used any other service that uses OAuth2 for this blog post too, but I chose Facebook since it is a fairly well known and widely used service. To do OAuth2 authentication might sound daunting and I don't blame you. OAuth1 is hard to do. Still, it's used by many popular web services, like Twitter. Because OAuth1 is so hard to do, I've even created a library for Qt that handles OAuth1 authentication to make your life easier. But ever since the library got released I wanted to add support for OAuth2 into the library too, because I knew people also wanted to use services that only support OAuth2, like Facebook. But this was before I understood how simple OAuth2 really is. Now I am not even sure if it's worth adding OAuth2 support to this library at all.

Technorati Tags: , , , ,