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

QPainter: nested QPainters causes a crash rather than a warning.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.6.3
    • GUI: Painting
    • None
    • Windows 7

    Description

      The current warning about using more than one paint device only works if painting is not redirected to another paint device. If painting is redirected, the presence of two painters is not detected and the application crashes. The patch (customer to attach) fixes this problem.

      I've tested the patch against Qt 4.6.3 and using customer supplied test harness. I can confirm that it works as described and applications that attempt to use more than one paint device, where one of those is redirected will no longer crash but give a suitable warning in the debug output.

      Test harness is attached.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            cattell Matthew Cattell (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes