Hi everyone,
I am new in the wonderful world of Qt. I have a problem regarding using the QModelIndex inside the QFileDialog class.
I have implemented a doubleClicked(const QModelIndex&) signal which calles a slot treeitemclicked(QModelIndex const&) whenever i double click on any row item from the treeview.
The Syntax is as like below:
connect(view->treeItemView(), SIGNAL(doubleClicked(const QModelIndex&)),this, SLOT (treeitemclicked(QModelIndex const&)));
Inside the slot definition, i got the modelindex with correct row, column values along with parent pointer. But i am not sure that my this parent pointer is correct or not.
also if i check the validity of my modelindex through isvalid function, it comes true( correct).
I don't know what is going wrong on my side. Can anyone please suggest me some solution of this problem.
Bookmarks