Ok, I'll give you a hint. QFile inherits QIODevice.