Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QT += opengl
- greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
- TARGET = untitled2
- TEMPLATE = app
- SOURCES += main.cpp
- wopengl.cpp
- HEADERS +=
- wopengl.h
- #include <QApplication>
- int main(int argc, char *argv[])
- {
- QApplication a(argc, argv);
- return a.exec();
- }
- #ifndef WOPENGL_H
- #define WOPENGL_H
- #include <QGLWidget>
- class WOpengl : public QGLWidget{
- public:
- void scene();
- };
- #endif // WOPENGL_H
- #include "wopengl.h"
- #include <QtOpenGL>
- #include <GL/gl.h>
- void WOpengl::scene(){
- glVertex3f(0.0, 0.0, 0.0);
- }
- qmake.exe D:filqtsimple_3Duntitled2.pro -spec win32-msvc2015 "CONFIG+=debug" "CONFIG+=qml_debug" && C:/Qt/Qt5.7.1/Tools/QtCreator/bin/jom.exe qmake_all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement