Beispiel #1
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    GLView v;
    v.show();

    return a.exec();
}
Beispiel #2
0
int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);

    GLView view;
    view.setResizeMode(QQuickView::SizeRootObjectToView);
    view.setSource(QUrl("qrc:/main.qml"));
    view.show();

    return app.exec();
}