QT中使用OpenGL绘图(二)

2014-11-24 09:10:23 · 作者: · 浏览: 2
L': No such file or directory


如果你是这个错误,那么你需要在.pro文件中添加QT += opengl


(2)错误:C2504: 'QGLWidget' : base class undefined


如果你是这个错误,那么请你在.h文件中添加 #include


(3)错误:C2039: 'show' : is not a member of 'GLWidget'


如果你是这个错误,那么请你在.h文件中添加 #include


上面的代码参考了Qt_OpenGL教程