PDA

View Full Version : Sample applicaiton - QTreeWidget, QTableWidget, QItemSelectionModel



sajis997
20th April 2012, 05:42
Hello forum,


I have a dialog window separated by the qtreewidget and the qtablewidget. Whenever the user clicks any of the tree widget item, more attribute information about the tree item will be shown in the table widget.

If anyone is aware of any examples related to what i am looking for as mentioned above, please send me those references.


I am trying to understand the piechart example and in the mean-time i shall be grateful if something more simpler reference example shows up from anyone of you.


Regards
Sajjad

mentalmushroom
20th April 2012, 08:09
I think piechart is something different: it displays the same data in different views. You need to show a different data in the second view. Take a look at QDataWidgetMapper and maybe QSqlRelationalTableModel, QSqlRelationalDelegate if you are using relational database.