#include #include #include #include "xhr.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); QQuickView view; XHR* xhr = XHR::instance(); view.rootContext()->setContextProperty("xhr", xhr); view.setSource(QUrl("qrc:/qml/friendiqa.qml")); view.show(); view.connect(view.rootContext()->engine(), SIGNAL(quit()), &app, SLOT(quit())); return app.exec(); }