Hi
Sorry that was a typo. In the application we are using a d-pointer which contains the view. I removed this to make the example easier to understand.
Some progress information:
1) I managed to get it working from my hard drive. When I copied the files from the place where it was developed into the resource folder I moved the images and that is why they did not load. When I fixed it it works fine. This is the code:
QDeclarativeView* view = new QDeclarativeView;
view
->setSource
(QUrl::fromLocalFile("D:/Work/Calculator/resources/qml/Calculator.qml"));
view->show();
QDeclarativeView* view = new QDeclarativeView;
view->setSource(QUrl::fromLocalFile("D:/Work/Calculator/resources/qml/Calculator.qml"));
view->show();
To copy to clipboard, switch view to plain text mode
2) However trying to get it to work out of the qt resource system still displays an empty white view.
Thanks,
Jaco
Bookmarks