main.cpp 497 B

123456789101112131415161718192021222324
  1. #include <QtGui/QApplication>
  2. #include "qmlapplicationviewer.h"
  3. #include "HttpServer.h"
  4. #include "PhoneBookServlet.h"
  5. #include "ApplicationLogic.h"
  6. #include <QDeclarativeContext>
  7. int main(int argc, char *argv[])
  8. {
  9. QApplication app(argc, argv);
  10. ApplicationLogic logic;
  11. QmlApplicationViewer viewer;
  12. viewer.rootContext()->setContextProperty("logic", &logic);
  13. viewer.setMainQmlFile(QLatin1String("qml/symergy/main.qml"));
  14. viewer.showExpanded();
  15. return app.exec();
  16. }