How did you guys get it work ?.I already put all my qml file in resouurce.The deploment folder and qml folder in pro. files also commented out but why the qml is not compiled into sis.I can create a sis files but qml files is not included so when i install and open the app,it just blank screen.The sis file size also reduced by 1 1/2 so i guess the qml file is not getting compiled.
pro.
Code:
# Add more folders to ship with the application, here
#folder_01.source = qml/XXXXX
#folder_01.target = qml
folder_02.source = qml/XXXXX
folder_02.target = qml
DEPLOYMENTFOLDERS = folder_02 #folder_01
Main.cpp
Code:
QApplication app(argc, argv);
app.setApplicationName("xxxxxxxxx");
QDeclarativeView view;
//QDeclarativeContext *context = view.rootContext();
qmlRegisterType<xxxxxxxxr>("xxxxxxxx", 1, 0, "xxxxxxxxxx");
qmlRegisterType<xxxxxx>("xxxxxx", 1, 0, "Shake");
view.setSource(QUrl("qrc:/qml/XXXXX/start.qml"));
view.window()->show();
QObject::connect(view.engine(), SIGNAL(quit()), &view, SLOT(close()));
return app.exec();