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

Dash lines disappear when scrolling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • 4.6.2
    • 4.5.3
    • GUI: Painting
    • None

    Description

      If I draw in a scrollable widget elements with Qt::DashLine style then when scrolling e.g down and back the dash line elements fully or partially disappear, whereas solid style lines remain visible all right.

      To demonstrate the bug I have modified the Qt 'imageviewer' example. To reproduce:
      1. Build and run the project.
      2. Scroll down or left and back.
      3. See the effect.

      IMHO, the problem is in "src/gui/painting/qpaintengine_raster.cpp":
      805 // ### I've seen this inverted devrect multiple places now...
      806 QRectF clipRect = s->matrix.inverted().mapRect(QRectF(d->deviceRect));
      807 d->dashStroker->setClipRect(clipRect);

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            nikolay Nikolay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes