How to start tree view from click in table view
Hi ,
I want to know how to start a tree view from table view.
Actually i am able to connect both table view and tree view but problem is that whenever i click on any cell tree view is coming.
I want to design it in such a way that when i click on particular cell only tree view should come up. Can anyone help me on this.
Thanks in advance
Namitha.
Re: How to start tree view from click in table view
What do you mean with "start a tree view"?
How does you UI look like right now?
What do you do in the slot that reacts to selection/current changes?
Cheers,
_
Re: How to start tree view from click in table view
Hi ,
Sorry for the late reply.
What i want to do is when i click on row no. 1 of my table tree view 1 should come up which will have more information about the data i have given in the table. I am able to connect tableview cell click to tree view but i am not able to specifically begin the tree view which i want. Now when i click on any row in the table same tree view is coming.
Please help me on this.
Thanks in advance
Namitha.
Re: How to start tree view from click in table view
Which signal are you connecting to?
What does that slot look like?
Cheers,
_
Re: How to start tree view from click in table view
I am using standard function on_tablewidget_cellClicked(int row,int column).
My function looks like this
void MainWindow::on_tablewidget_cellClicked(int row,int column)
{
//call to treewidget function.
}
Re: How to start tree view from click in table view
So your // call to tree widget function then uses row and column to get the respective data from the table and use them to fill the tree widget with the appropriate values?
Doesn't look like there is any problem.
Cheers,
_