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

p.drawPath(pp); crashes when pp contains around 9 million or more elements

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.1
    • GUI: Painting
    • None
    • Win XP32

    Description

      QPainterPath pp; qreal x, y; // set x, y to some reasonable values
      pp.moveTo (x, ph - y);
      for (qint64 i = 0; i < 9000000; i++)
      pp.lineTo (x, ph - y); // just give some reasonable values to x, y

      QPainter p.drawPath (pp); // crashes
      // 0..8M ok 2M..10M ok. Problem is quantity

      For instance: A work around is to split 10 million into chunks of 1 million
      and call 10 times a drawPath.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            tino Tino Lourens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes