maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Starting QT Development for Nokia N9 (https://talk.maemo.org/showthread.php?t=81319)

JanMalte 2012-01-03 21:50

Starting QT Development for Nokia N9
 
Hello together, i just bought me the great Nokia N9 mobile phone.
As i also have a N900 and like to provide some help to the so called ecosystem, i want to start my first application. As this will be the first QT ("desktop") application, i'm looking for some usefull hints or tutorials for the first steps.
I'm working for a web company and I'm familiar with programming in generall i think this wont be that hard for me.

So, do you have any links or information for me? I think this could be interesting for many "new" contributers.

rcolistete 2012-01-03 22:31

Re: Starting QT Development for Nokia N9
 
What is your programming background ? Do you know C/C++ ? Or Python ? Etc ?

Copernicus 2012-01-03 22:55

Re: Starting QT Development for Nokia N9
 
Quote:

Originally Posted by JanMalte (Post 1145335)
So, do you have any links or information for me?

It's probably best to start right at the source: there's quite a decent amount of tutorials and documentation on the Qt website. The http://qt.nokia.com/learning page has a good collection of materials to start with...

MartinK 2012-01-03 23:43

Re: Starting QT Development for Nokia N9
 
You can check my development resources list. :)

JanMalte 2012-01-05 11:20

Re: Starting QT Development for Nokia N9
 
Thanks for your links. My background is PHP an a bit of Java at the moment. But I think Python with Qt will be my choice for the next time.

Do you know if there is a simple HelloWorld HowTo for the N9 MeeGo Harmattan using the "stylish" UI theme?

nieldk 2012-01-05 11:36

Re: Starting QT Development for Nokia N9
 
Quote:

Originally Posted by JanMalte (Post 1146090)
Thanks for your links. My background is PHP an a bit of Java at the moment. But I think Python with Qt will be my choice for the next time.

Do you know if there is a simple HelloWorld HowTo for the N9 MeeGo Harmattan using the "stylish" UI theme?

Like this one ?
http://wiki.meego.com/SDK/Docs/1.1/Creating_Hello_World

SamGan 2012-01-05 13:11

Re: Starting QT Development for Nokia N9
 
Quote:

Originally Posted by nieldk (Post 1146094)

That link is for N900. Is there any Hello World tutorial for N9/N950?

pycage 2012-01-05 13:22

Re: Starting QT Development for Nokia N9
 
Yes, install the Qt SDK from qt.nokia.com. It comes with plenty of examples and some tutorials.
The best Hello World example is simply creating a new Qt Quick Application project in Qt Creator, looking at the code, and playing around with it.

rm42 2012-01-05 14:42

Re: Starting QT Development for Nokia N9
 
Someone please correct me if I'm wrong. It is my understanding that if you want a Python/Qt app to work on both the N9 and the N900 you will have to use PySide (the version of PyQt created by Nokia). Although you can code your app in a way that it will use whichever of the two is installed:
Code:

try:
    from PyQt import QtCore, QtGui
    import pyqt_utils as utils
except ImportError:
    from PySide import QtCore, QtGui
    import pyside_utils as utils

Also, while applications using Qt widgets written with PyQt/PySide will look native on the N900, they will look a bit retro/desktopish on the N9. For applications to look native (with style applied) on the N9 they need to be written using QML. But, I don't think Python/QML apps will work on the N900, right? How mature is Python/QML on the N900?

Using PyQt you will only be able to write GPL (license) programs, unless you purchase a different license from them. Using PySide you are able to write proprietary programs, but PySide may not be as mature as PyQt, not sure about this.

Any way, hope some of this helps a little.

pycage 2012-01-05 15:06

Re: Starting QT Development for Nokia N9
 
QML is supported on the N900 with PR 1.3. Qt version is 4.7.0.
The CSSU updates have the more recent version Qt 4.7.4 which is the same the N9 runs.
However, QML on the N900 is not really performant. The hardware would be capable as it runs fine on Nemo, but the graphics driver of the Maemo OS is not.


All times are GMT. The time now is 03:44.

vBulletin® Version 3.8.8