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

Big Gradients are drawn very badly with QPainter on Image render target

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.8.0
    • GUI: Painting
    • None
    • Qt 5.8.0 32Bit
      Windows 10 PC x64.
      Compiling with MSVC 2015 x86.

    Description

      When painting with QPainter and using big gradients with small ranges between the colorstops, the colors in between get interpolated only very badly. The bigger the gradient, the worse the result. It does not matter, how much of the gradient is really visible.

      This happens only when using Image as render target. With a FramebufferObject everything looks nice and clean.

      It is the same for linear and radial gradients. A linear gradient could be changed to a smaller gradient with other colorstops though, but if you want a radial gradient with a certain radius, it is not really possible to substitute it for a smaller one.

      A demo application which shows the problem is attached.

      Attachments

        1. BigGradient.png
          BigGradient.png
          11 kB
        2. GradientDemo.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            markus_s Markus Steinhilber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes