Have you tried just loading the file to QByteArray to verify it loads correctly?
Edit:
Something like (untested, but you get the idea):
QFile file(":/index.htm");
if(file.open(QIODevice::ReadOnly)) {
QByteArray dump = file.readAll();
qDebug() << "contents: " << dump;
} else {
qDebug() << "error: " << file.error();
}
The error()
method returns QFile::FileError
enum.