I resolved the problem put:
In the file main.cpp , add
#include <QApplication>
#include "window.h"
#include <GL/glut.h>//add
int main(int argc, char *argv[])
{
glutInit(&argc, argv); //initialize glut
Window window;
window.show();
return app.exec();
}
#include <QApplication>
#include "window.h"
#include <GL/glut.h>//add
int main(int argc, char *argv[])
{
glutInit(&argc, argv); //initialize glut
QApplication app(argc, argv);
Window window;
window.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
See you
Bookmarks