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

Painting artefacts when using QPen with style other than SolidLine in QGraphicsView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.2
    • 4.6.0
    • None
    • Windows XP SP2
      g++ 4.4.0 (Qt SDK 4.6.0)
    • 5baf1a9ba0388109685539384d6f4e674ad252d6

    Description

      Here is the minimum example:

      #include <QtGui>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      	QMainWindow w;
      
      
      	QGraphicsScene* s = new QGraphicsScene(&w);
      	QGraphicsView* v = new QGraphicsView(s);
      	s->setSceneRect(-1000,-1000,3000,3000);
      
      	w.setCentralWidget(v);
      
      	QRectF circleRect(0,0,600,600);
      	QGraphicsEllipseItem* el = new QGraphicsEllipseItem(circleRect);
      	el->setPen(QPen(Qt::red, 4, Qt::DashLine));
      	s->addItem(el);
      
          w.show();
          return a.exec();
      }
      

      Run it and scroll the view to the right - the ellipse is clipped.

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            radagast Petro Kazmirchuk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes