2011-05-24 05:47:59 -07:00
|
|
|
|
2013-05-17 12:51:24 +02:00
|
|
|
#include <QApplication>
|
|
|
|
#include <QTextStream>
|
|
|
|
#include <QDeclarativeView>
|
|
|
|
#include <QUrl>
|
2011-05-24 05:47:59 -07:00
|
|
|
|
|
|
|
#include "qpython.h"
|
2013-05-17 12:51:24 +02:00
|
|
|
#include "qpython_test.h"
|
2011-05-24 05:47:59 -07:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
2013-05-17 12:51:24 +02:00
|
|
|
qpython_test();
|
2011-05-24 05:47:59 -07:00
|
|
|
|
2013-05-17 12:51:24 +02: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;
|
|
|
|
}
|
|
|
|
|