<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
<shameless plug><br>
I have an oldish blog post ( <a
href="http://achipa.blogspot.fi/2011/07/qt-components-story-of-ugly-qwidgetling.html">http://achipa.blogspot.fi/2011/07/qt-components-story-of-ugly-qwidgetling.html</a>
) that delves into this multi-OS-UI story, not sure if it counts
as best practices, but might be worth a read. It's over two years
old, but I think the gist still holds and applies to Sailfish just
as it did to the Qt platforms of the day it was written. And just
so that this goes beyond "just an opinion", this is how QtInfo (as
seen on TV, errr...
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="https://projects.developer.nokia.com/qtinfo">https://projects.developer.nokia.com/qtinfo</a>
) deals with all these funky UIs and how I managed to port the
QtInfo UI to Sailfish in just 30 minutes or so without any
previous knowledge of silica components and more importantly,
without losing compatibility w any of the considerable amount of
platforms and UIs QtInfo supports.<br>
</shameless plug><br>
<br>
Attila<br>
<br>
<br>
<br>
<br>
On 10/04/13 07:29, Jonni Rainisto wrote:<br>
</div>
<blockquote
cite="mid:900612F8BC662740A7204670782E741BF43C40@ORD2MBX04A.mex05.mlsrvr.com"
type="cite">
<pre wrap="">qt-components-devel package is just there for a while to make porting process for silica components easier.
Most likely that package wont be available on release repositories, so you really should not depend on that package existing.
re, Jonni
________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a> [<a class="moz-txt-link-abbreviated" href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a>] on behalf of <a class="moz-txt-link-abbreviated" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a> [<a class="moz-txt-link-abbreviated" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>]
Sent: Wednesday, April 10, 2013 12:48 AM
To: Lucien XU
Cc: <a class="moz-txt-link-abbreviated" href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a>
Subject: Re: [SailfishDevel] Harmattan to SailfishOS Migration: Any Best Practices out there?
Salut Lucien
Thanks for your tres rapid answer!
I should have said a little more about my project.
It is mainly qml, with lots of custom components, some javascript &
Sql, and a small amount of C++ to do things that I found no way of
doing from QML (accessing the led flashlight and sending SMSes).
In the meantime I have also found that the com.nokia.meego components
can be installed to Sailfish via the qt-components-devel package.
However Qt Creator still thinks the module com.nokia.meego is not
installed. This seems to be caused by a missing plugin.qmltypes file;
and so far my attempts to produce one have failed ....
Merci
Chris
Zitat von "Lucien XU" <a class="moz-txt-link-rfc2396E" href="mailto:sfietkonstantin@free.fr"><sfietkonstantin@free.fr></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Hello Chris,
The article from Thomas Perl that you linked basically identify all the
challenge of that kind of migration (that is also a problem for migration to
eg BB10).
If you are doing a "pure" Qt app, then the C++ / Qt code should be the same
(maybe only adaptation in main). If you use PySide, it is the same idea,
python code should work out of the box, and might only need a different
launcher.
But the GUI is another problem. Sailfish GUI is very different from other
mobiles platforms, like the fact that it is missing (eg) a toolbar. It also
offers some facilities (pickers, base for clickable entry etc.)
If your project is very big, the best idea is the one of thp's blog post. But
if the GUI is rather easy to replicate, maybe you should maintain
two GUI, one
written in QML / MeeGo components, and the other one with QML / Sailfish
Silica. This way is the optimal one since it allows "perfect" GUI, without
compromise, in all the platforms.
Writing QML can be quickly done, so if the GUI is simple enough, then you can
rewrite your GUI with Sailfish Silica, I don't think that it will be a huge
loss of time.
Cheers,
Lucien
Le mardi 9 avril 2013 21:38:24 <a class="moz-txt-link-abbreviated" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a> a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">Hi All
I am in the process of migrating my current Harmattan project to SailfishOS.
The goal is (at least initially) to achieve a "minimum effort"
migration to get my project running on both platforms from a common
code base. (Later, when Sailfish devices are commercially available I
can then do a full native migration and dump the Harmattan side).
So my question is: are there any recommended best practices out there
to achieve such a "minimum effort / common code base" migration?
I have found this suggestion which I am currently digesting:
<a class="moz-txt-link-freetext" href="http://thpmaemo.blogspot.ch/2013/03/porting-harmattan-apps-to-sailfish.html">http://thpmaemo.blogspot.ch/2013/03/porting-harmattan-apps-to-sailfish.html</a>
Challenges that I have so far identified are:
1) The Harmattan SDK by default installed Qt packages that are
optional in the Mer / SailfishOS SDK: This does not worry me too much,
I think I should be able to identify the ones relative to my project
quickly enough.
2) A Harmattan project (like mine) is very likely to use Qt Objects
from the package "com.nokia.meego 1.0"
Is it possible to install this package on Sailfish? If so how?
Or do I need to replace these Harmattan specific components? e.g. with
generic Qt components common to both platforms? / custom component? /
system of wrappers? xxxx?
Thanks
Chris
_______________________________________________
SailfishOS.org Devel mailing list
</pre>
</blockquote>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
SailfishOS.org Devel mailing list
_______________________________________________
SailfishOS.org Devel mailing list
</pre>
</blockquote>
<br>
</body>
</html>