You are saying that if you pass the filename that worked with QFile to loadFile it doesn't work anymore?

Cheers,
_