文件名一直是乱码。

Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
dmy@lab
2015-01-08 10:13:29 +08:00
parent 1e3ad32bfa
commit bdb5c72fa2
6 changed files with 69 additions and 60 deletions

View File

@@ -174,11 +174,16 @@ void ElementHashtable::SetFDSet(const QVector<QString> &FDSet)//FeeDer集合
void ElementHashtable::ShowContainerInfo(const QString& fileName)
{
QString relPath="./../output/";
QFile file(relPath+fileName+".txt");
if(file.open(QFile::ReadOnly))
relPath+=fileName+".txt";
QFile file(relPath.toLocal8Bit());
if(file.open(QFile::WriteOnly|QFile::Text))
{
QTextStream stream(&file);
this->tpRecorder->showContainerInfo(stream);
file.close();
}
else
{
std::cerr<<"not open"<<relPath.toStdString()<<std::endl;
}
}