QT简易文件管理器--DAY2

94 阅读1分钟

今日摸鱼

image.png

还差改个多线程就应该完美了(菜狗不会),让chatgpt写都是坑。

DfsListFolderFiles(path,tree);和  DfsSearchFiles(path,Qs2Ss(searchTextEdit->toPlainText()));  
  
void  MainWindow::handleButtonClicked(){  
    tree->clear();  
    path= Qs2Ss(TextEdit->toPlainText());  
  cout<<"Path="<<path<<endl;  
  DfsListFolderFiles(path,tree);  //here
  rowCount=0;tableWidget->clear();  
  DfsSearchFiles(path,Qs2Ss(searchTextEdit->toPlainText()));  //here
}