PDA

View Full Version : QModelIndex question?



QXiaoWang
19th October 2010, 09:20
QModelIndex index = TreeView-> currentIndex ();
How to set a unique value for the index






Thank you very much........

Lykurg
19th October 2010, 09:47
Use setData() of the model with an user role.