Hi
I wanted to release my QML based project . In the target computer I could run the program but none of the pictures were loaded ! I didn't use resource system and my pictures are in a folder called 'images' next to the main.qml qml file and the source of the Image element is:
source:"images/back.jpg"
source:"images/back.jpg"
To copy to clipboard, switch view to plain text mode
The main qml file is loaded in the QMLViewer using the following code :
QmlApplicationViewer *_viewer = new ...;
_viewer
->setMainQmlFile
(QLatin1String("qml/MyCompany/main.qml"));
[B
]//images folder is in qml/MyCompany directory[/B]
QmlApplicationViewer *_viewer = new ...;
_viewer->setMainQmlFile(QLatin1String("qml/MyCompany/main.qml"));[B]//images folder is in qml/MyCompany directory[/B]
To copy to clipboard, switch view to plain text mode
QmlApplicationViewer is a class that is created automatically by Qt.
Is this a well known problem for QML?
How can I solve it ?
thanks
Added after 16 minutes:
The stranger thing is that the deployed version works in my computer and every thing loads correctly !
Bookmarks