浏览代码

Process events once and then notify world we are ready

Donald Carr 7 年之前
父节点
当前提交
c5c18d6f3f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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.rootContext()->setContextProperty("nativeUtils", &nativeUtils);
     engine.load(QUrl(qmlPath + "/main.qml"));
     engine.load(QUrl(qmlPath + "/main.qml"));
 
 
+    QGuiApplication::processEvents();
+    sd_notify(0, "READY=1");
     return app.exec();
     return app.exec();
 }
 }