1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-01-28 23:52:55 +08:00
pyotherside/main.cpp

27 lines
412 B
C++
Raw Normal View History

2011-05-24 05:47:59 -07:00
#include <QApplication>
#include <QTextStream>
#include <QDeclarativeView>
#include <QUrl>
2011-05-24 05:47:59 -07:00
#include "qpython.h"
#include "qpython_test.h"
2011-05-24 05:47:59 -07:00
int main(int argc, char **argv)
{
QApplication app(argc, argv);
qpython_test();
2011-05-24 05:47:59 -07:00
QPython::registerQML();
2011-05-24 05:47:59 -07:00
QDeclarativeView *view = new QDeclarativeView();
view->setSource(QUrl("pyotherside.qml"));
view->show();
app.exec();
return 0;
}