@devDawg
In memory, resources are represented by a tree of resource objects. The tree is automatically built at startup and used by QFile for resolving paths to resources. You can use a QDir initialized with ":/" to navigate through the resource tree from the root.
So, you could use:
QQmlComponent comp(&engine,QUrl("qrc:/Display0.qml")); QFile file(":/Display0.qml"); // acessing by resource treeNOTE: QStringLiteral is a optimization case, you can use QStringLiteral to avoid the implicit conversion between char* to QString and then copy the data.
References:
Qt Resource Documentation - Using resource in the application
QStringLiteral Explanation