File indexing completed on 2025-01-19 03:55:37
0001 #include <QGuiApplication> 0002 #include <QQmlApplicationEngine> 0003 #include <QtQml> 0004 #include <QtWebView/QtWebView> 0005 0006 #include "o1.h" 0007 #include "o1twitter.h" 0008 #include "o1requestor.h" 0009 #include "twitterapi.h" 0010 0011 int main(int argc, char *argv[]) { 0012 QGuiApplication app(argc, argv); 0013 QCoreApplication::setOrganizationName("MySoft"); 0014 QCoreApplication::setOrganizationDomain("mysoft.com"); 0015 QCoreApplication::setApplicationName("sialis"); 0016 QtWebView::initialize(); 0017 qmlRegisterType<O1Twitter>("com.pipacs.o2", 1, 0, "O1Twitter"); 0018 qmlRegisterType<TwitterApi>("com.pipacs.o2", 1, 0, "TwitterApi"); 0019 QQmlApplicationEngine engine; 0020 engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); 0021 return app.exec(); 0022 }