Why does my treeview in GUI with QFileSystemModel sometimes freezing when I copying file in separate thread (Qt)?
问题 Here is my Model, that inherits QFileSystemModel class MyFileSysModel : public QFileSystemModel { Q_OBJECT public: MyFileSysModel( QObject *parent = 0); Qt::ItemFlags flags(const QModelIndex &index) const; bool dropMimeData(const QMimeData *data, Qt::DropActions supportedDropActions() const; }; in MainWindow I created model and initializied treeview MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); model = new MyFileSysModel(this);