Пример #1
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    GLView v;
    v.show();

    return a.exec();
}
Пример #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();
}