How to display selected row from a qtableview in annother one
Unsolved
General and Desktop
-
Hi...! Please i want to display the selected row from second tableview in the first qtableview.I mean,the first window have a tableview and buttons ,so when you click on the button it open a second window containing the second qtablview displaying database contents.
My problem is that I don't know how to display in the first qtableview the row i selected in the second one.
i tried using selectedindexes() to take the index but don't know exactly how to call it in the first window's class.
Thanks for helping me -
Something like this? https://api.kde.org/frameworks/kitemmodels/html/classKSelectionProxyModel.html
-
Hi,
You can pass the selection model to your dialog and create the proxy there.