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

QPainter::drawPolyline hang with Antialiasing switched on

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.2
    • GUI: Painting
    • None
    • Linux, Fedora 12, x86-64, Qt 4.6.2 (Fedora binary version)
    • ffb5db8aafbe2b49be5cd454841a2af8acc426ee

    Description

      When Antialiasing is switched on I can reproducibly cause Qt to hang when drawing a polyline, under Fedora 12 Linux, x86-64. This may be because the dataset includes a large number of very similar points.

      Please compile and run the attached program. The main routine just does this:

      void Win::paintEvent(QPaintEvent*)
      {
      QPainter painter(this);

      QPolygonF poly;
      for(size_t i = 0; i != numpts; i++)

      { poly << QPointF( pts[i*2], pts[i*2+1] ); }

      // crashes with line below enabled
      painter.setRenderHint(QPainter::Antialiasing, true);

      painter.drawPolyline(poly);
      }

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            jeremysanders Jeremy Sanders
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes