OnpenGL in QT widget without QGLWidget and QOpenGLWidget

want create an application base on QT and use OpenGL to display a video but for my project I can’t use QGLWidget and QOpenGLWidget.

Do you have any idea to do it ?

I try to create class like that :

    myGLWidget::myGLWidget(int framesPerSecond, QWidget *parent, char *name) 
        : QWidget(parent)

but after the fonction like this doesn’t work:
glTexImage2D( GL_TEXTURE_2D, 0, 3, qim_Texture.width(), qim_Texture.height(), 0, GL_RGBA, GL_UNSIGNED_BYTE, qim_Texture.bits() );

Thank you in advance !