← Back to team overview

ubuntu-phone team mailing list archive

Re: [Core Apps] Template Update

 

Al 13/02/13 11:51, En/na Frank Mertens ha escrit:
> Hi Michael,
> 
> can you elaborate more, where to put the C++ modules?
> Is there an example somewhere?
> 

Hi Frank,

First of all here's some guidance we got from the SDK team (the
developers who are creating the Ubuntu SDK) on this:

1. Start with pure QML applications and stick to it as long as you do
not performance blocker or a critical missing feature/API

2. If you miss an API or anything from QML, create a Qt Quick2 extension
and expose the new APIs and functionality to QML

3. Package the QML plugin separate and carry on developing the pure QML
application using the new APIs and features

4. If you hit serious performance blocker, join #ubuntu-phone on IRC and
subscribe the ubuntu-phone@xxxxxxxxxxxxxxxxxxx mailing list and ask
around for advice

5. If there is no other way C++ is still a viable and supported option,
but you need to consider the trade-off of the higher maintenance work
and the issues with cross compilation for the performance benefits of C++

6. Choosing C++ instead of QML just because that is what you are
familiar with and that is what you have heard from people is very seldom
the right choice. Most cases your application is going to be just fine
with QML/JS

We'll be putting those guidelines in some form on the development guide
[1] soon.

In terms of examples to create a Qt Quick 2 extension (point 2.), you
can use the template project for exactly that purpose in Qt Creator.
That should set up the project, layout and files to start creating a C++
extension that can be accessed through QML.

I hope this helps!

Cheers,
David.

[1] https://wiki.ubuntu.com/UbuntuPhone/CoreApps/DevelopmentGuide

-- 
David Planella
Ubuntu App Development Liaison
http://gplus.to/dplanella / @dplanella
www.ubuntu.com / www.davidplanella.org

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References