Porting Qt Quick Application to Meego Harmattan Qt Quick Application
m (Chintandave er -) |
hamishwillee
(Talk | contribs) m (Text replace - "<code cpp>" to "<code cpp-qt>") |
||
| (10 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | [[Category:Qt Quick]][[Category:MeeGo]][[Category:Porting]][[Category:Qt]] | + | [[Category:Qt Quick]][[Category:MeeGo Harmattan]][[Category:Porting]][[Category:Qt]] |
| − | {{Abstract|This article explains how to port your Qt Quick application to | + | {{Abstract|This article explains how to port your Qt Quick application to MeeGo Qt Quick application.}} |
| − | {{ArticleMetaData | + | {{ArticleMetaData <!-- v1.2 --> |
| − | |devices= Nokia N950, | + | |sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> |
| − | |sdk= [ | + | |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> |
| − | |platform= | + | |devices= Nokia N950 Developer Device, N9 |
| + | |sdk= [http://www.developer.nokia.com/info/sw.nokia.com/id/da8df288-e615-443d-be5c-00c8a72435f8/Qt_SDK.html Qt SDK 1.1.3] | ||
| + | |platform= MeeGo Harmattan | ||
| + | |devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) --> | ||
| + | |dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 --> | ||
| + | |signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer --> | ||
| + | |capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --> | ||
|keywords= Porting | |keywords= Porting | ||
| − | | | + | |language= <!-- Language category code for non-English topics - e.g. Lang-Chinese --> |
| − | |author= [[User: | + | |translated-by= <!-- [[User:XXXX]] --> |
| + | |translated-from-title= <!-- Title only --> | ||
| + | |translated-from-id= <!-- Id of translated revision --> | ||
| + | |review-by= <!-- After re-review: [[User:username]] --> | ||
| + | |review-timestamp= <!-- After re-review: YYYYMMDD --> | ||
| + | |update-by= <!-- After significant update: [[User:username]]--> | ||
| + | |update-timestamp= <!-- After significant update: YYYYMMDD --> | ||
| + | |creationdate= 20110924 | ||
| + | |author= [[User:Chintandave er]] | ||
}} | }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== How to == | == 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 | + | 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. | - Go to File > New File or Project > Qt Quick Project Template > Qt Quick Application. | ||
| − | [[File: | + | [[File:Ss1 porting.png|520x340px]] |
| − | === | + | === Select Qt Quick Application Type=== |
- Select Qt Quick Application type "Built in Elements Only (For all Platform)" | - Select Qt Quick Application type "Built in Elements Only (For all Platform)" | ||
| − | [[File: | + | [[File:Ss2 porting.png]] |
| − | === | + | === Select Target Harmattan === |
- Select Target Harmattan as in screenshot. | - Select Target Harmattan as in screenshot. | ||
| − | [[File: | + | [[File:Ss3 porting.png|620x380px]] |
| − | === | + | === Select Application Icon=== |
- Select appropriate application icon having size 80x80. | - Select appropriate application icon having size 80x80. | ||
| − | [[File: | + | [[File:Ss4 porting.png]] |
| − | === | + | === Replace your QML file=== |
- Now you can see the Qt Quick application created with sample main.qml in it. | - Now you can see the Qt Quick application created with sample main.qml in it. | ||
| − | [[File: | + | [[File:Ss5 porting.png]] |
- Replace your Qt Quick application's QML file as it was in your old Qt Quick application. Delete the sample main QML file. | - Replace your Qt Quick application's QML file as it was in your old Qt Quick application. Delete the sample main QML file. | ||
| − | [[File: | + | [[File:Ss6 porting.png]] |
| − | But | + | But don't forget to change the starting qml file name in Source >> Main.cpp file. |
| − | <code cpp> | + | <code cpp-qt> |
| − | + | ||
#include <QtGui/QApplication> | #include <QtGui/QApplication> | ||
#include "qmlapplicationviewer.h" | #include "qmlapplicationviewer.h" | ||
| Line 72: | Line 80: | ||
| − | === | + | === Start MeeGo Emulator === |
| − | - To start | + | - 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. |
| − | [[File: | + | [[File:Ss7 porting.png]] |
| − | After click on it, you can see the | + | After click on it, you can see the MeeGo Emulator is starting as seen in screenshot below. |
| − | [[File: | + | [[File:Ss8 porting.png|520x340px]] |
| − | Once it fully start you can see the | + | Once it fully start you can see the MeeGo various application icon. |
| − | [[File: | + | [[File:Ss9 porting.png|520x340px]] |
| − | === | + | === Run the Project=== |
| − | - Run your project, by | + | - 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. |
| − | [[File: | + | [[File:Ss10 porting.png|340x520px]] |
| − | === | + | === Application running on Emulator=== |
| − | - You can see your Qt Quick application running on | + | - You can see your Qt Quick application running on MeeGo Emulator. |
| − | [[File: | + | [[File:Ss11 porting.png|520x340px]] |
| − | [[File: | + | [[File:Ss12 porting.png|520x340px]] |
| − | === | + | === 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. | - 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 | + | That will use as setup file for MeeGo Harmattan Platform. |
| + | |||
| + | [[File:Ss13 porting.png]] | ||
| − | + | == 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. | |
| − | + | ||
| − | [[File: | + | [[File:Ss14 porting.png|520x340px]] |
== Summary == | == Summary == | ||
| − | Porting Qt quick app to | + | Porting Qt quick app to MeeGo is very easy using Qt SDK 1.1.3. |
Latest revision as of 04:18, 11 October 2012
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.







