Files

25 lines
494 B
C++
Raw Permalink Normal View History

2025-02-05 13:03:32 +02:00
#include <stdlib.h>
#include <unistd.h>
2025-04-23 16:40:01 +03:00
#include <qqml.h>
2025-02-21 17:35:10 +02:00
#include <QDir>
2025-02-05 13:03:32 +02:00
extern "C" {
void NimMain();
}
int main(int argc, char* argv[])
{
2025-02-21 17:35:10 +02:00
Q_INIT_RESOURCE(resources);
2025-04-23 16:40:01 +03:00
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
qmlRegisterModule("Qt.labs.settings", 1, 1);
qmlRegisterModule("Qt.labs.settings", 1, 0);
qmlRegisterModuleImport("Qt.labs.settings", QQmlModuleImportModuleAny,
"QtCore", QQmlModuleImportLatest);
#endif
2025-02-05 13:03:32 +02:00
NimMain();
return 0;
}