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

Change semantics of UpdateRequest events created by QWindow::requestUpdate()

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • GUI: Painting
    • None

    Description

      Currently this type of UpdateRequest forces a repaint, e.g. for widgets user paintEvent code is always called, even if nothing is marked dirty.

      This is perhaps not that useful in the general case. Instead we should make QWindow UpdateRequest behavior match QWidget UpdateRequest:

      • The UpdateRequest event is the correct place to repaint any dirty areas.

      This mostly applies to Raster, OpenGL would do a full repaint anyway (unless there is some sort of FBO caching setup.)

      There might be cases where a full repaint is needed, but this can be accomplished by using a flag and/or the Expose event.

      The alternative to this would be creating a new type of "update" event - an unfortunate duplication.

      Attachments

        Issue Links

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

          Activity

            People

              sletta Gunnar Sletta
              sorvig Morten Sørvig
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes