You probably used a relative path, and inside QtCreator the "current directory" from where the executable is ran is not necessarily the directory where the executable is.
Try:
qDebug() << QDir::currentPath();
It will tell you where you should expect your file to be written.