Using GpuMat frame as opengl texture

Hi all,I’m working on application that will change color space of frames receiving from camera for greater performance I have tried opencv cuda . I’m using Pyqt5 as UI. After converting colorspace I need download to cpu and feed that frame to qtwidget . Now I heard about opengl but there is no reference about it.

How can we use GpuMat frame to opengl texture. If possible code with python is too good or else no problem share your code that is also good. Thanks in Advance!