QString path; QDir dir; path=dir.currentPath(); QMessageBox::warning(0,"PATH",path,QMessageBox::Yes);//查看路径