Hi guys

I tried to do this after reading some tutorial but I can't just get it working

I just need some code that, when incorporated to a Qt Widget and called show, displays the picture (as I do now with glDrawPixels).

I've seen a lot of examples from OpenGL tutorials but don't know how to transfer that to Qt. I just need to create a quad (but don't get all the idea about the codenates; it will be just my widget, not inside of anything bigger) and creating the texture out of the pixels array.

Could you give me a hand? I cannot be very difficult, I just don't get it.


Thanks!