#include "MdiArea_OPenGL.h"
#include <QtWidgets/QApplication>
#include <QGLWidget>
#include <QMdiArea>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QMdiSubWindow>
#include <QMessageBox>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QMdiArea *zoneCentrale = new QMdiArea();
zoneCentrale->show();
QMdiSubWindow *sub1 = new QMdiSubWindow(zoneCentrale);
int maxTextureSize = 1024;
QGraphicsScene *scene = new QGraphicsScene(0, 0, 200, 200, sub1);
QGraphicsView *vue = new QGraphicsView(scene, sub1);
QGLWidget *widget1 = new QGLWidget(QGLFormat(QGL::SampleBuffers));
vue->setViewport(widget1);
sub1->show();
return a.exec();
}