#include "loginwindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/login.qml")));
LoginWindow loginWindow;
loginWindow.loginObject = engine.rootObjects().first();
loginWindow.loginObject->setProperty("visible", QVariant(true));
QObject::connect(loginWindow.loginObject, SIGNAL(submit(QString, QString)), &loginWindow, SLOT(authorization(QString, QString)));
return app.exec();
}