I’m trying to load some text to TextArea from a file in QRC. But I don't know how to do that. QML file QRC file
I tried to do that in C++, too. Code:
QFile file(":/assets/CREDIT.md");
But I just get an error: QIODevice::read (QFile, ":\assets\CREDIT.md"): device not open
Cpp file