如题,file.copy的问题。我在程序中执行file.copy("picture.png","yy/picture.png");可以执行,他可以将picture.png拷贝到yy的目录下,但是改成file.copy(tr("picture.png","%1/123.png").arg(username));却拷贝不成功了。(程序功能是要实现将picture.png,拷贝到以用户命名的目录下),该怎么办?是file.copy不支持arg这种用法,还是我那里写错了?求大声说指教?
还有就是用QPixmap pixmap(tr("%1/%2").arg(user_name).arg(name));这样子用也不行的。(user_name为目录,name为图片的名字)
求大神指点迷津!!不胜感激涕零!!