Porting Qt Quick Application to Meego Harmattan Qt Quick Application
This article explains how to port your Qt Quick application to MeeGo Qt Quick application.
Article Metadata
Tested with
Compatibility
Article
Contents |
How to
To port you application you just need to follow below step using Qt SDK 1.1.3. Its very easy with Qt SDK 1.1.3. In this article, I will port my WaterBubble Qt Quick Game to MeeGo. You can get more details about my game Water Bubble on this WaterBubble Game Using Qt Quick.
Create New Qt Quick Application Project
- Go to File > New File or Project > Qt Quick Project Template > Qt Quick Application.
Select Qt Quick Application Type
- Select Qt Quick Application type "Built in Elements Only (For all Platform)"
Select Target Harmattan
- Select Target Harmattan as in screenshot.
Select Application Icon
- Select appropriate application icon having size 80x80.
Replace your QML file
- Now you can see the Qt Quick application created with sample main.qml in it.
- Replace your Qt Quick application's QML file as it was in your old Qt Quick application. Delete the sample main QML file.
But don't forget to change the starting qml file name in Source >> Main.cpp file.
#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QmlApplicationViewer viewer;
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
viewer.setMainQmlFile(QLatin1String("qml/waterbubble/Waterbubble.qml"));
viewer.showExpanded();
return app.exec();
}
Start MeeGo Emulator
- To start MeeGo Emulator on Qt SDK 1.1.3, click on Left Bottom Button as seen on Screenshot. Before start it is look like in screenshot with small green start button on it.
After click on it, you can see the MeeGo Emulator is starting as seen in screenshot below.
Once it fully start you can see the MeeGo various application icon.
Run the Project
- Run your project, by clicking on the Run button. You can see your application running on MeeGo Emulator and you can see your application icon after kill the running process or exit the application as below.
Application running on Emulator
- You can see your Qt Quick application running on MeeGo Emulator.
Find Package .deb file
- Get the package .deb file with version number in name (in my case waterbubble_0.0.1_armel.deb) in Application Folder. That will use as setup file for MeeGo Harmattan Platform.
Qt Quick Application Running on Nokia N950
You can see the Qt Quick application running on N950 MeeGo developer device after installing waterbubble_0.0.1_armel.deb file in screenshot below.
Summary
Porting Qt quick app to MeeGo is very easy using Qt SDK 1.1.3.








Hamishwillee - Deceptive title and Abstract
Hi Chintan
What I think this actually delivers is a topic that explains how to build your topic for MeeGo - ie you're starting with a generic Qt Quick app that you've only built on Symbian, and you're doing the needed changes for building to MeeGo. If so, I'm not sure you need to go to this effort - you should be able to specify a MeeGo build target and create the additional build files needed. If not, then this is useful ... but you still need a better title.
As is, the current title and Abstract are deceptive. "Porting Qt Quick Application to Meego Harmattan Qt Quick Application" implies that you're starting from an application that uses only generic Qt Quick components running on some other platform, and then you're porting it to run properly on MeeGo - the implication being that you would use the platform style and the Qt Quick Components for that platform.
Am I correct in this assessment? If so then first thing to do would be determine how/if you can add a new build target to the project for MeeGo if its initially just for Symbian. If that works you will need to modify the title in line. If not, then perhaps a more accurate title explaining exactly the problem you're solving.
Regards Hamish
PS
I deleted the Preconditions. You only need these if you're doing something a developer would consider nonstandard - this does not include installing the SDK, although a lot of articles do include that information (a waste of space in my opinion)hamishwillee 07:31, 22 February 2012 (EET)
Chintandave er - RE: Deceptive title and Abstract
Right Hamish, Thanks for updates.
Actually when I created this article, Meego in Qt SDK was just announced. So I thought It would be good to create such porting article. But now I think it is common and not so important becuz of the Qt SDK feature. So the article is little bit lost its important.
So you can change the title of this article and if you find it useless then you can remove too.
Thanks.
Chintan Dave.Chintandave er 07:38, 22 February 2012 (EET)