This comment applies to Qt5.6.3.
It appears that the quick compiler doesn’t generate proper namespaces when using full paths in a qrc file. I was attempting this because I need to autogenerate a qrc file in the binary folder. The sources are passed to a function to then create the qrc file. The quick compiler runs but produces invalid C++ like this when full paths are used:
Somewhere else in the documentation I thought I saw that colons ‘:’ were translated to underscores ‘_’ to avoid this. Is this just a case of using a pretty old version of the quick compiler that this happens?
namespace QtQuickCompilerGeneratedModule
{
namespace _ImportFiles_C:_Projects_AEPP_eSW_Qt_AEPPApps_ImportFiles_ImportGraphicFileLister_qml
{
extern const unsigned char qmlData[];
extern AOTFunction moduleFunctions[];
QV4::CompiledData::CompilationUnit *createCompilationUnit() { return ::createCompilationUnit(reinterpret_cast<const QV4::CompiledData::Unit*>(qmlData), moduleFunctions); }
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(qmlData), &createCompilationUnit, &::loadQmlIR
};
}