change to qt to do the opengl, more convenient