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

QOpenGLWidget and QGraphicsVideoItem issue

    XMLWordPrintable

Details

    Description

      I have experienced problems using QOpenGLWidget as a viewport of a QGraphicsView that contains a QGraphicsVideoItem object, binded to a QCamera: no video is rendered even if texture is correctly loaded (I checked with AMD GPU PerfStudio). Digging in code i see that QVideoSurfaceGlslPainter::paint calls QOpenGLContext::currentContext()>surface()>size() but the returned QSize is strangely 1x1 !
      To check if the problem is related to the complexity of my code, I got the official videographicsitem example; first I ran it as it is and video is correctly played, but then I set a QOpenGLWidget as the viewport and the problem is the same as in my code !
      Is that a Qt bug or I did some mistakes ?

      Attachments

        1. main.cpp
          2 kB
        2. videographicsitem.pro
          0.3 kB
        3. videoplayer.cpp
          5 kB
        4. videoplayer.h
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            simnav Simone Navari
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes