强化:把treeview的QString路径转换为QModelIndex节点,有了节点就什么都好办了
http://doc.qt.io/qt-4.8/qdirmodel.html#index-2
甚至还能直接调用setData:
setData(const QModelIndex &index, const QVariant &value, int role);
http://doc.qt.io/qt-4.8/qdirmodel.html#index-2
甚至还能直接调用setData:
setData(const QModelIndex &index, const QVariant &value, int role);