I'm not 100% sure that this is a bug, but it should either be fixed or the
documentation should be updated to mention this behavior:
QTemporaryFile forgets the fileName() after it is close()d.
Simple test case (problem occurred here with Qt 4.4.1-20080402 on Linux):
#include <QTemporaryFile>
#include <QTextStream>
#include <iostream>
using std::cerr;
using std::endl;
int main(int argc, char **argv) {
QTemporaryFile f("/tmp/testXXXXXX");
f.setAutoRemove(false);
f.open();
cerr << "File name is " << f.fileName().toLatin1().data() << endl;
f.close();
cerr << "File name after close() is " << f.fileName().toLatin1
().data() << endl;
}
To unsubscribe - send "unsubscribe" in the subject to [EMAIL PROTECTED]