QT #include <QGLWidget> no such file or directory problem
I have installed QT on Slackware 13.37 x64 and when I create gui project it works ok, but I need OpenGL. When I add #include <QGLWidget>
I get error No such file or directory there is my env Quote:
|
Well, QGLWidget is in /usr/lib/qt/include/QtOpenGL/, so perhaps you need to change your include directive to
#include <QtOpenGL/QGLWidget> or change the list of include directories to include /usr/lib/qt/include/QtOpenGL. How are you compiling your code? I don't use Qt, so I may not really be able to help, but we'll see. |
Quote:
Quote:
Code:
QT += opengl |
All times are GMT -5. The time now is 12:25 PM. |