Qt中获取打开文件的名字
Qt中获取打开文件的名字void TxtEditMainWindow::openFileSlot(){ QString fileName = QFileDialog::getOpenFileName(this, "open file", QDir::currentPath()); /*** 如果是空文件 */ if(fileName.isEmpty()) { QMessageBox::information(this,"Warning Mes...