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

Different output from QPainter for X11, raster and opengl backend.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.8.3
    • GUI: Painting
    • None
    • openSUSE 12.2 x86_64, Default Qt libraries 4.8.1 and Qt libraries 4.8.3 compiled from source code. NVIDIA proprietary drivers.
    • 7b8e10ddd02693b3d6b7a7e74d2103787f6e76ac (5.0)

    Description

      I got 2 problems.
      1) When using QGLWidget or option -graphicssystem opengl (same result for both) then lines or rectangles and probably all paint operations with zero X coordinate are not visible. With X11 or raster backend they are visible. It looks like with x11 but shifted by 1 pixel to left.

      2) Co-ordination rounding for raster paint engine is different from X11 and opengl. Raster co-ordinations are rounded and in X11 and opengl are ceiled. This different output is visible from attached images or you can compile source code. The most left vertical line has zero coordination. Rectangles with size 50x50 start with zero X co-ordinate and every lower rectangle has X co-ordinate increased by 0.2.

      Maybe i use painter badly but i think output should be same.

      Attachments

        1. opengl.png
          opengl.png
          3 kB
        2. opengl-2.png
          opengl-2.png
          5 kB
        3. qt.tar.gz
          2 kB
        4. qt-2.tar.gz
          2 kB
        5. raster.png
          raster.png
          3 kB
        6. raster-2.png
          raster-2.png
          5 kB
        7. x11.png
          x11.png
          3 kB
        8. x11-2.png
          x11-2.png
          5 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-27500
          # Subject Branch Project Status CR V

          Activity

            People

              Unassigned Unassigned
              opikhart Oldřich Pikhart
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes