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

Painter is messing up the text and rounded rectangle drawing (MSVC2019/release)

    XMLWordPrintable

Details

    • Windows
    • 70e7445dbeba9bd24de963e7e431c4698b6b4569 (qt/qtbase/5.12)

    Description

      I have recently stumbled upon a few bugs in Qt 5.12.4 release builds only. In debug build, it works as expected. Attached the source code to reproduce the problems.

      Problem 1:
      I have a QTestWidget which is trying to custom paint some text on the screen but the painting is somehow messed up.

      Problem 2:
      Another problem is if I create a QPainterPath with a addRoundedRect() it is not painted properly. Although addRect() works fine.

      The same code does use to work fine in Qt 5.6.0 both in debug and release.

       

      Attachments

        1. bugs.zip
          2 kB
        2. qtbug77119.jpg
          qtbug77119.jpg
          124 kB
        3. qtbug77119.zip
          3 kB
        4. qtbugs.mp4
          54 kB

        Issue Links

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

          Activity

            People

              vgt Eirik Aavitsland
              singh Khushwant Singh
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes