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

Make it possible to use QPainter on a QGLWidgets from a thread

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • None
    • GUI: OpenGL
    • None

    Description

      As OpenGL is - with few exceptions - reentrant and since it is possible to use OpenGL calls to render to a QGLWidget from a thread it should also be possible to use a QPainter on such a widget from within a thread.

      However, the static caches in QOpenGlPaintEngine break reentrancy for that engine. Using TLS or mutexes for the caches would allow painting to GL widgets from a thread.

      Attachments

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

        Activity

          People

            kjernase Trond Kjernåsen (Inactive)
            vhilshei Volker Hilsheimer
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes