<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'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 <QtopiaApplication><br>#include <QGraphicsView><br>#include <QGraphicsScene><br>
#include <QGraphicsPathItem><br><br>int main ( int argc, char *argv[] )<br>{<br> qDebug ( "sizeof qreal is %d",sizeof ( qreal ) );<br><br> QtopiaApplication app ( argc, argv );<br> QGraphicsScene *qgs = new QGraphicsScene;<br>
QGraphicsView *qgv = new QGraphicsView ( qgs );<br> qgv->showMaximized();<br><br> QPainterPath *qpp = new QPainterPath;<br><br> qpp->moveTo ( 18164355,12559962 );<br> qpp->lineTo ( 18164319,12560006 );<br>
qpp->lineTo ( 18164273,12560058 );<br> qpp->lineTo ( 18164262,12560068 );<br> qpp->lineTo ( 18164253,12560074 );<br> qpp->lineTo ( 18164242,12560080 );<br> qpp->lineTo ( 18164232,12560085 );<br>
qpp->lineTo ( 18164222,12560093 );<br> qpp->lineTo ( 18164221,12560106 );<br> qpp->lineTo ( 18164224,12560112 );<br> qpp->lineTo ( 18164231,12560113 );<br> qpp->lineTo ( 18164239,12560112 );<br>
<br> QGraphicsPathItem *p=new QGraphicsPathItem ( *qpp );<br> QPen pen ( Qt::white );<br> //pen.setWidthF(1.0); //UNCOMMENTING THIS BREAKS PAINTING<br> p->setPen ( pen );<br> qgs->addItem ( p );<br><br>
QRect r ( 18164355-qgv->width() /2,12559962-qgv->height() /2,qgv->width(),qgv->height() );<br> qgv->setSceneRect ( r );<br><br> return app.exec();<br>}<br><br>Run it twice toggling the pen.setWidthF line comment and you'll se wath i'm saying.<br>
<br>Hoping this may help, i'd like to follow/contribute to further investigation on a bug tracking system, is there one for qtopia?<br><br>Regards<br><br> Nicola<br></div></div></div>