QString FileName = "mv_" + QString("%1.txt").arg(iPoc);//此處能夠實現動態賦值 std::string str = FileName.toStdString(); const Char *mvFileName = str.c_str();