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

Windows: Can't paint in WM_PAINT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.14, 5.15
    • QPA: Windows
    • None
    • Windows

    Description

      For some reason, I need to paint something in WM_PAINT, but if I use BeginPaint in WM_PAINT in a QWindow/QWidget's nativeEvent function, the whole window will become blank. If I do it in a native event filter and install it, the window won't become blank but all the changes I made in WM_PAINT are lost.

      If it's a bug, please tell me the work around and I'll submit a patch if you don't have time.

      If it's not a bug, I wish you can give me some advice on how to achieve this. Hacks are acceptable as well.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            wangwenx190 赵 宇航
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes