<div dir="ltr">This is the desktop file:<br><span style="color:rgb(128,128,0)"><br>[Desktop</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">Entry]</span>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)">Type</span>=Application</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)">X-Nemo-Application-Type</span>=silica-qt5</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)">Icon</span>=harbour-hextrap</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)">Exec</span>=harbour-hextrap</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)">Name</span>=Hex<span style="color:rgb(192,192,192)"> </span>Trap</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">translation</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">example:</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(0,128,0)">#</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">your</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">app</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">name</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">German</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">locale</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(de)</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)">Name</span><span style="font-weight:600;color:rgb(0,0,128)">[de]</span>=harbour-hextrap<br><br></pre><pre style="margin:0px;text-indent:0px">This is the main.cpp:<br>
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><sailfishapp.h></span>
<br>
<br>
<span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">main</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">argc</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">char</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(0,0,0)">argv</span><span style="color:rgb(0,0,0)">[])</span>
<span style="color:rgb(0,0,0)">{</span>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">SailfishApp::main()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">will</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">display</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"qml/template.qml",</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">you</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">need</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">more</span>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">control</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">over</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">initialization,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">you</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">can</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">use:</span>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">-</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">SailfishApp::application(int,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">char</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">*[])</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">get</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">QGuiApplication</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">*</span>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">-</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">SailfishApp::createView()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">get</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">new</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">QQuickView</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">instance</span>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">-</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">SailfishApp::pathTo(QString)</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">get</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">QUrl</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">resource</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">file</span>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">To</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">display</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">view,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">call</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"show()"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(will</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">show</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">fullscreen</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">on</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">device).</span>
<br>
<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">return</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">SailfishApp</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">main</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">argc</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">argv</span><span style="color:rgb(0,0,0)">);</span>
<span style="color:rgb(0,0,0)">}</span>
<br></pre><pre style="margin:0px;text-indent:0px">spec and yaml -files I have not touched, they are in their defaults.<br><br></pre><pre style="margin:0px;text-indent:0px">Sorry this app is not it github <br></pre><pre style="margin:0px;text-indent:0px"><br></pre><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>// Peter Pykäläinen</div></div>
<br><div class="gmail_quote">On 14 March 2015 at 22:03, Andrey Kozhevnikov <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
show content of desktop file, main.cpp and spec/yaml also, but it
will better to see at whole project tree on github or so, if your
application is opensource.<br>
<br>
<div>15.03.2015 00:58, Peter Pykäläinen
пишет:<br>
</div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Hi,<br>
<br>
</div>
the app is pure QML app, nothing to it.<br>
</div>
Main QML is like this:<br>
<br>
<span style="color:rgb(128,128,0)">import</span><span style="color:rgb(192,192,192)"> </span>QtQuick<span style="color:rgb(192,192,192)"> </span>2.0
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,128,0)">import</span><span style="color:rgb(192,192,192)"> </span>Sailfish.Silica<span style="color:rgb(192,192,192)"> </span>1.0</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,128,0)">import</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"pages"</span></pre>
<pre style="margin:0px;text-indent:0px"></pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(128,0,128)">ApplicationWindow</span></pre>
<pre style="margin:0px;text-indent:0px">{</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">property</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">bool</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">isScramble</span>:<span style="color:rgb(192,192,192)"> </span>false;</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">property</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">bool</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">isGameOn</span>:<span style="color:rgb(192,192,192)"> </span>false;</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">property</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">bool</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">isMuted</span>:<span style="color:rgb(192,192,192)"> </span>false</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">property</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">score</span>:<span style="color:rgb(192,192,192)"> </span>0;</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">property</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">hexCount</span>:<span style="color:rgb(192,192,192)"> </span>0</pre>
<pre style="margin:0px;text-indent:0px"></pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">initialPage</span>:<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">Component</span><span style="color:rgb(192,192,192)"> </span>{<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">Game</span><span style="color:rgb(192,192,192)"> </span>{<span style="color:rgb(192,192,192)"> </span>}<span style="color:rgb(192,192,192)"> </span>}</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">cover</span>:<span style="color:rgb(192,192,192)"> </span><span style="font-style:italic;color:rgb(0,85,175)">Qt</span>.resolvedUrl(<span style="color:rgb(0,128,0)">"cover/CoverPage.qml"</span>)</pre>
<pre style="margin:0px;text-indent:0px">}</pre>
<pre style="margin:0px;text-indent:0px"></pre>
<pre style="margin:0px;text-indent:0px">I have the same kind of setup in every other app that I've done, and they work just fine.
</pre>
<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div><br>
// Peter Pykäläinen</div>
</div>
<br>
<div class="gmail_quote">On 14 March 2015 at 21:34, Andrey
Kozhevnikov <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
You know, if you want to get help you need to show at
least something and give more details about your
application :)<br>
<br>
<div>15.03.2015 00:11, Peter Pykäläinen пишет:<br>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
I have a strange problem.<br>
</div>
I am developing an app and it works fine when
launched from QtCreator or terminal.<br>
</div>
But when trying to launch it by tapping the app
icon, it starts, stays on the loading screen and
then after a while dies.<br>
<br>
</div>
Anyone else had similar issues?<br clear="all">
<div>
<div>
<div>
<div>
<div>
<div>
<div><br>
// Peter Pykäläinen</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br></blockquote></div><br></div>