If you use QFile*, you're declaring a pointer, you need to use "new QFile()" to it works.
And open it with the option for writing ^^