PDA

View Full Version : How to start tree view from click in table view



namitha
1st May 2016, 07:38
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.

anda_skoa
1st May 2016, 09:27
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,
_

namitha
1st June 2016, 13:02
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.

anda_skoa
1st June 2016, 15:27
Which signal are you connecting to?
What does that slot look like?

Cheers,
_

namitha
2nd June 2016, 06:46
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.

}

anda_skoa
2nd June 2016, 08:42
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,
_