Explorar o código

Process events once and then notify world we are ready

Donald Carr %!s(int64=7) %!d(string=hai) anos
pai
achega
c5c18d6f3f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/main.cpp

+ 2 - 0
src/main.cpp

@@ -141,6 +141,8 @@ int main(int argc, char *argv[])
     engine.rootContext()->setContextProperty("nativeUtils", &nativeUtils);
     engine.load(QUrl(qmlPath + "/main.qml"));
 
+    QGuiApplication::processEvents();
+    sd_notify(0, "READY=1");
     return app.exec();
 }