kimitake

quick fix to build Jolla MobileUX_QML

Jul 18th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. int main(int argc, char * argv[])
  2. {
  3. QApplication a(argc, argv);
  4. QDeclarativeView w;
  5. w.setResizeMode(QDeclarativeView::SizeViewToRootObject);
  6. w.setAttribute(Qt::WA_OpaquePaintEvent);
  7. w.setAttribute(Qt::WA_NoSystemBackground);
  8. w.viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
  9. w.viewport()->setAttribute(Qt::WA_NoSystemBackground);
  10. // w.setSource(QString("%1/MobileUX_QML.qml").arg(QCoreApplication::applicationDirPath()));
  11. w.setSource(QUrl("../MobileUX_QML/MobileUX_QML.qml"));
  12. w.show();
  13. return a.exec();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment