c++, kein notepad zur hand:

#include <fstream>

QString file = "test.txt";
fstream fin;
fin.open(file.toStdString().c_str(),ios::in);
if(fin.is_open() )
{
// if you're in here your file exists
}
fin.close();