Roland Melkert Wrote:I was wondering what the value of VBO_NumArrays was (it's not defined in the two sources you gave)
Also you are supplying the wrong count to drawArrays in at least one place (6 instead of 18) but I doubt that is causing the main problem.
Actually the post in the link I posted turned out to be right. glGenBuffers may only be called inside initializeGL.
Now the VBOs get rendered correctly.. but everything else (the Qt-stuff) isn't..