class Widget : public QWidgetclass Thread : public QThread
void Widget::slotFind(const QModelIndex &index){ QDir dir = QDir(model.filePath(index)); emit signal_consider(dir); QObject::connect(this, SIGNAL(signal_consider(const QDir &)), thread, SLOT(slot_consider(const QDir &))); thread->start();}
QObject::connect(treeView_1, SIGNAL(clicked(const QModelIndex &)), this, SLOT(slotFind(const QModelIndex &)));