Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2933

Painting issues for paths, fonts and antialiasing in QGraphicsView when qreal is defined as float, ie on a ARM target

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 4.3.2
    • GUI: Painting
    • 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();
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            isdale Keith Isdale (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes