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

Make QGLWidget::drawTexture() respect painter's state if called outside a begin/endNativePainting() block

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.0
    • GUI: OpenGL
    • None
    • 91976b6bde42dd8c939591c01017208aaa670418 65536764c06200762ea6308703eae7ee3df17b15 131f634a2595ca7910c34bd07c311aea9de2bb62

    Description

      It would be nice if QGLWidget::drawTexture() worked without having to call begin/endNativePainting(), and respected the current painter's clip, opacity, render hints, and composition mode settings. Currently there's no way of drawing a GL texture within the QPainter framework.

      The behaviour of drawTexture() when a QPainter is active needs to be clearly documented as well.

      Attachments

        1. checkers.zip
          280 kB
        2. qgl_drawTexture.diff
          4 kB
        3. qglwidget_patch.diff
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tcooksey Tom Cooksey
            rodal Samuel Rødal
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes