强化:把treeview的QString路径转换为QModelIndex节点,有了节点就什么都好办了

http://doc.qt.io/qt-4.8/qdirmodel.html#index-2

甚至还能直接调用setData:

setData(const QModelIndex &index, const QVariant &value, int role); 

posted @ 2016-06-21 00:19  findumars  Views(463)  Comments(0)    收藏  举报