Beispiel #1
0
int main(int argc, char *argv[])
{
	Application app(argc, argv);
	QtQuick2ControlsApplicationViewer viewer;

	viewer.setMainQmlFile(QStringLiteral("qml/main.qml"));
	viewer.show();

    return app.exec();
}
int main(int argc, char *argv[])
{
    Application app(argc, argv);
    qmlRegisterType<SqlManager>("Logics", 1, 0, "SqlManager");

    QtQuick2ControlsApplicationViewer viewer;
    viewer.setMainQmlFile(QStringLiteral("qml/CourseSelectionAndGradeManagementSystem/main.qml"));
    viewer.show();

    return app.exec();
}
int main(int argc, char *argv[])
{
    Application app(argc, argv);

    TaskScheduler taskScheduler(&app);

    QtQuick2ControlsApplicationViewer viewer;
    viewer.rootContext()->setContextProperty("taskScheduler", &taskScheduler);
    viewer.setMainQmlFile(QStringLiteral("qml/ui/main.qml"));
    viewer.show();

    return app.exec();
}
Beispiel #4
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    qmlRegisterType<FileOpenDialog>("MyModules", 1, 0, "FileOpenDialog");
    qmlRegisterType<FileSaveDialog>("MyModules", 1, 0, "FileSaveDialog");

    QtQuick2ControlsApplicationViewer viewer;
    viewer.setMainQmlFile(QStringLiteral("qml/file-dialog-demo/main.qml"));
    viewer.show();

    return app.exec();
}