PDA

View Full Version : QTreeWidget and Models?



JediSpam
13th October 2011, 17:34
Hello,

I have been working with QTreeViews lately but am in a scenario where I have implemented QTreeWidget. I have used QStandardItemModels for QTreeView but am reading that QTreeWidget
"This class is based on Qt's Model/View architecture and uses a default model to hold items, each of which is a QTreeWidgetItem."
in the Assistant. What I am currently trying to do is select an item out of the TreeWidget and send that data to a new dialog. I have this implemented successfully in QTreeView but am a little confused on how the modeling aspect works. Any help would be great. I would gladly post my QTreeView code to explain what I'm doing as far as sending to another dialog. Thanks!