hi,

i have a program that load a qml file from it's resource and loads an external resource file that contains the theme of the application.

the qml file is loaded but it can't find the theme qml file.

here's some code (not sure i'm really clear)
Qt Code:
  1. QDeclarativeView viewer;
  2. viewer.setSource(QUrl("qrc:/mainGUI/qml/main.qml"));
  3. QResource::registerResource(QCoreApplication::applicationDirPath() + "/Theme/Theme");
To copy to clipboard, switch view to plain text mode 

and in the qml file:
Qt Code:
  1. import QtQuick 1.0
  2. import "../../Theme"
  3.  
  4. Rectangle {
  5. width: 900
  6. height: 600
  7. id:main
  8. Theme{id:theme}
  9. }
To copy to clipboard, switch view to plain text mode 

the import doesn't even work but it works when i include the Theme dir into the embeded resource.
i used qdiriterator to list the content of ":/" and all my files are in place