hi ,
i am writing treeview code like this. this code displaying all file
in my computer and then when i was click this item in treview
for example this message apper : /user
but i need all path this file like this : /home/user/a.txt...
thanks alot
Onder
treeDosyalar = new QTreeView();
model = new QDirModel();
treeDosyalar->setModel(model);
connect(treeDosyalar, SIGNAL(doubleClicked(QModelIndex)),this,
SLOT(treeAc(QModelIndex)));
void treeAc(QModelIndex qm)
{
QString text = qm.parent().data(0).toString();
QMessageBox::information(this, "Mesaj", text);
}
Bookmarks