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

27 lines
449 B
C++

#include <QtCore>
#include <QtDeclarative>
#include "qpython.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QPython::registerQML();
/*QTextStream out(stderr);
QPython py;
py.importModule("pyotherside");
out << py.evaluate("pyotherside.demo()");*/
QDeclarativeView *view = new QDeclarativeView();
view->setSource(QUrl("pyotherside.qml"));
view->show();
app.exec();
return 0;
}