<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">[...]<br>
So there is a problem in qtopia/arm or i&#39;m missing again somethink. This is the reason why i asked you how should i do to have consistency beetween the two SDK (arm - x86). Howewer i installed my built /opt/Qtopia on the Freerunner to be sure i used the same toolkit, but the problems are the same.</div>
</blockquote><div><br>Hi Lorn! after a two day headache i finally found the problem. In Qtopiacore for arm qreal is a float while in i686fb qreal is double.<br>I defined qreal as a float on i686 and recompiled it, and now i have the same paint horror on the desktop :)<br>
The following is a snippet that you can use to show how is simple to break a QPainterPath rendering in a QGraphicsScene/QGraphicsView:<br><br>#include &lt;QtopiaApplication&gt;<br>#include &lt;QGraphicsView&gt;<br>#include &lt;QGraphicsScene&gt;<br>
#include &lt;QGraphicsPathItem&gt;<br><br>int main ( int argc, char *argv[] )<br>{<br>&nbsp;&nbsp;&nbsp; qDebug ( &quot;sizeof qreal is %d&quot;,sizeof ( qreal ) );<br><br>&nbsp;&nbsp;&nbsp; QtopiaApplication app ( argc, argv );<br>&nbsp;&nbsp;&nbsp; QGraphicsScene *qgs = new QGraphicsScene;<br>
&nbsp;&nbsp;&nbsp; QGraphicsView *qgv = new QGraphicsView ( qgs );<br>&nbsp;&nbsp;&nbsp; qgv-&gt;showMaximized();<br><br>&nbsp;&nbsp;&nbsp; QPainterPath *qpp = new QPainterPath;<br><br>&nbsp;&nbsp;&nbsp; qpp-&gt;moveTo ( 18164355,12559962 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164319,12560006 );<br>
&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164273,12560058 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164262,12560068 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164253,12560074 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164242,12560080 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164232,12560085 );<br>
&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164222,12560093 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164221,12560106 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164224,12560112 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164231,12560113 );<br>&nbsp;&nbsp;&nbsp; qpp-&gt;lineTo ( 18164239,12560112 );<br>
<br>&nbsp;&nbsp;&nbsp; QGraphicsPathItem *p=new QGraphicsPathItem ( *qpp );<br>&nbsp;&nbsp;&nbsp; QPen pen ( Qt::white );<br>&nbsp;&nbsp;&nbsp; //pen.setWidthF(1.0); //UNCOMMENTING THIS BREAKS PAINTING<br>&nbsp;&nbsp;&nbsp; p-&gt;setPen ( pen );<br>&nbsp;&nbsp;&nbsp; qgs-&gt;addItem ( p );<br><br>
&nbsp;&nbsp;&nbsp; QRect r ( 18164355-qgv-&gt;width() /2,12559962-qgv-&gt;height() /2,qgv-&gt;width(),qgv-&gt;height() );<br>&nbsp;&nbsp;&nbsp; qgv-&gt;setSceneRect ( r );<br><br>&nbsp;&nbsp;&nbsp; return app.exec();<br>}<br><br>Run it twice toggling the pen.setWidthF line comment and you&#39;ll se wath i&#39;m saying.<br>
<br>Hoping this may help, i&#39;d like to follow/contribute to further investigation on a bug tracking system, is there one for qtopia?<br><br>Regards<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Nicola<br></div></div></div>