Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char * argv[])
- {
- QApplication a(argc, argv);
- QDeclarativeView w;
- w.setResizeMode(QDeclarativeView::SizeViewToRootObject);
- w.setAttribute(Qt::WA_OpaquePaintEvent);
- w.setAttribute(Qt::WA_NoSystemBackground);
- w.viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
- w.viewport()->setAttribute(Qt::WA_NoSystemBackground);
- // w.setSource(QString("%1/MobileUX_QML.qml").arg(QCoreApplication::applicationDirPath()));
- w.setSource(QUrl("../MobileUX_QML/MobileUX_QML.qml"));
- w.show();
- return a.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment