paysages3d/src/interface/modeler/quickapp/main.cpp

21 lines
445 B
C++
Raw Normal View History

#include <QGuiApplication>
#include <QQuickView>
#include <QtQml>
#include "OpenGLView.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
qmlRegisterType<OpenGLView>("Paysages", 1, 0, "OpenGLView");
QQuickView view;
view.setTitle(QObject::tr("Paysages 3D"));
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.setSource(QUrl("qrc:///main.qml"));
view.show();
return app.exec();
}