prady
7th August 2012, 12:33
I have one treeView and one widget in my main UI, which is promoted to myTreeView and myWidget respectively. Now I connecting these two widgets by..
connect(ui->treeView,SIGNAL(clicked(QModelIndex)),ui->widget, SLOT(UpdateDetails()));
myTreeView uses FileSystemModel, so here I want to pass FileInfo object of the selected item to myWidget::UpdateDetails slot, instead of model index. Could some one tell me how to do this ?
connect(ui->treeView,SIGNAL(clicked(QModelIndex)),ui->widget, SLOT(UpdateDetails()));
myTreeView uses FileSystemModel, so here I want to pass FileInfo object of the selected item to myWidget::UpdateDetails slot, instead of model index. Could some one tell me how to do this ?