How do I pass a QFile object as a paramter. I'm rehoisting some code that use to pass in the file pointer to the method. I've redone it to use QString and QFile. But when I try to compile I get an error saying that the QFile object is private...

the declaration is...

CNewProcess::ReadCommand(QFile cmdFile, in_buff_t buff[], *int items);

I call it as follows...

QFile commandFile("/tmp/commands.txt");
.
.
ReadCommands(commandFile, inputBuff, count);
..
..