A simple QT viewport for OpenGL
- g++ or clang++
- Qt >= 5 1
- qmake
- OpenGL
Clone the repo
git clone https://github.com/EMACC99/QTViewport_OpenGL
Then change to the folder repo with
cd QTViewport_OpenGL
To compile just run
qmake
then
make
This will generate an executable named openglwindow
on Linux or openglwindow.app
on Mac.
-
./openglwindow
-
open openglwindow.app
Or
./openglwindow
If
CONFIG -= app_bundle
is uncommented on the.pro
file.
Currently the only intercations provided are:
W
: Rotate up the objectA
: Rotate leftS
: Rotate downD
: Rotate rightR
: Auto rotate
Currently, the only things that have this intercations are ejemplo 4
and ejemplo 5
To run something, just select it from the drop down.
Footnotes
-
For QT6, change the line in
select_example.hpp
from#include <QtWidgets/QAction>
to#include <QtGui/QAction>
and addQT += openglwidgets
to the.pro
file ↩