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

Windows: Can't paint in WM_PAINT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 5.14, 5.15
    • Fix Version/s: None
    • Component/s: QPA: Windows
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            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