<font face="arial" size="1"><p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Hi Wim,</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">As you correctly noted, SailfishOS template (created by the SailfishOS wizard) is the preferred way.</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">However, this does not mean that you cannot build your existing Qt based C++ applications against Mer.</p>
<p style="margin:0;padding:0;">Just import your existing Qt project and add the SailfishOS kit and you are good to build.</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">For running in the emulator, ensure that your pro file has the following entries</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">TARGETPATH = /opt/sdk/bin<br />target.path = $$TARGETPATH<br /><br />INSTALLS += target</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"> </p>
<!--WM_COMPOSE_SIGNATURE_START-->
<p style="margin:0;padding:0;">Regards,</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Aurindam</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">IRC: auri__ @ freenode</p>
<p style="margin:0;padding:0;">www.aurindamjana.in</p>
<!--WM_COMPOSE_SIGNATURE_END-->
<p style="margin:0;padding:0;"><br /><br />On Tuesday, April 16, 2013 09:53, "Wim de Vries" <wsvries@xs4all.nl> said:<br /><br /></p>
<div id="SafeStyles1366153260">
<p style="margin:0;padding:0;">> My application is an aircraft navigation system (open source, see<br />> https://sourceforge.net/projects/pilotnavigator/), currently running on<br />> Ubuntu.<br />> I have one QGLWidget and physically next to that a GUI QtWidget.<br />> Mainwindow is also a QtWidget.<br />> I stumbled on this C++ issue when I posted a question on how to use the<br />> QtSerialPort (for gps and pressure sensors) module within Sailfish.<br />> I do want to port the GUI to QML somewhere in time (I have done some<br />> testing: huge amount of work), but I first want to test the application<br />> on Sailfish as it is now.<br />> I do use the pro file of the current project, but I have to add the<br />> QtSerialPort to the (Mer?) SDK before I can build the project.<br />> On Ubuntu I just build the .pro file of QtSerialPort with the current<br />> qmake, and the libs, headers, etc. end up nicely within the SDK, ready<br />> to be used for new projects.<br />> Any advice appreciated.<br />> Thanks.<br />> <br />> <br />> <br />> On 04/15/2013 08:12 AM, Jonni Rainisto wrote:<br />> ><br />> > Nothing prevents you from using C++ only, but having said that its<br />> > usually only fullscreen opengles2 games that goes with that approach.<br />> ><br />> > Usually you just make QtQuick application, where you do UI part with<br />> > QML and backend part in C++ aka. hybrid app. I would encourage to go<br />> > this way, of course depending what kind of application you are doing<br />> > (you didn't mention if you application if fullscreen opengles2 game).<br />> ><br />> > If you have existing C++ project, then its just enough for you to open<br />> > the existing .pro file with creator, you don't have to use the wizard<br />> > to make a new project. Drawback is that look and feel wont be<br />> > consistent with other applications if you don't use the QML Sailfish<br />> > components for the UI.<br />> ><br />> > re, Jonni<br />> ><br />> > On 04/14/2013 11:48 PM, Wim de Vries wrote:<br />> >> Hi,<br />> >> My project is C++.<br />> >> It looks like Sailfish is only Qt Quick (new project only allows this<br />> >> option).<br />> >> Is C++ a no-go for sailfish?<br />> >> If not, how do I proceed.<br />> >> Thanks.<br />> >> _______________________________________________<br />> >> SailfishOS.org Devel mailing list<br />> ><br />> > _______________________________________________<br />> > SailfishOS.org Devel mailing list<br />> ><br />> <br />> _______________________________________________<br />> SailfishOS.org Devel mailing list<br />></p>
</div></font>