Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.3.2
-
None
Description
Problem has been confirmed as beeing present in Qt 4.4.x and is believed to be in Qt 4.3.x; snaphots showing the issue have been stored in this bug tracking system.
#include <QtopiaApplication>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsPathItem>
int main ( int argc, char *argv[] )
{
qDebug ( "sizeof qreal is %d",sizeof ( qreal ) );
QtopiaApplication app ( argc, argv );
QGraphicsScene *qgs = new QGraphicsScene;
QGraphicsView *qgv = new QGraphicsView ( qgs );
qgv->showMaximized();
QPainterPath *qpp = new QPainterPath;
qpp->moveTo ( 18164355,12559962 );
qpp->lineTo ( 18164319,12560006 );
qpp->lineTo ( 18164273,12560058 );
qpp->lineTo ( 18164262,12560068 );
qpp->lineTo ( 18164253,12560074 );
qpp->lineTo ( 18164242,12560080 );
qpp->lineTo ( 18164232,12560085 );
qpp->lineTo ( 18164222,12560093 );
qpp->lineTo ( 18164221,12560106 );
qpp->lineTo ( 18164224,12560112 );
qpp->lineTo ( 18164231,12560113 );
qpp->lineTo ( 18164239,12560112 );
QGraphicsPathItem *p=new QGraphicsPathItem ( *qpp );
QPen pen ( Qt::white );
//pen.setWidthF(1.0); //UNCOMMENTING THIS BREAKS PAINTING
p->setPen ( pen );
qgs->addItem ( p );
QRect r ( 18164355-qgv->width() /2,12559962-qgv->height() /2,qgv->width(),qgv->height() );
qgv->setSceneRect ( r );
return app.exec();
}