WaterLevelSensor/main.cpp

21 lines
545 B
C++
Raw Normal View History

2026-08-04 21:31:40 +05:30
#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
qputenv("QT_SCALE_FACTOR", "1.0");
2026-09-14 15:31:21 +05:30
qputenv("QT_SCALE_FACTOR_ROUNDING_POLICY", "Round");
2026-08-04 21:31:40 +05:30
QGuiApplication app(argc, argv);
2026-08-04 21:31:40 +05:30
QQmlApplicationEngine engine;
QObject::connect(
&engine,
&QQmlApplicationEngine::objectCreationFailed,
&app,
[]() { QCoreApplication::exit(-1); },
Qt::QueuedConnection);
engine.loadFromModule("WaterLevelRewrite", "Main");
return QCoreApplication::exec();
}