Use a QFile instead