hey all,
Im using a QList <QTreeWidgetItem *> to get all the selected item in my qtree.
Here is what its done:
Qt Code:
  1. void Getmydistro::on_treeWidget_clicked()
  2. {
  3. QList <QTreeWidgetItem *> selection;
  4. selection << ui.treeWidget->selectedItems();
  5. for(int i=0;i<selection.size();i++)
  6. {
  7. selection.at(i);
  8. qDebug() << selection.at(i);
  9. }
  10. }
To copy to clipboard, switch view to plain text mode 

i would like to use some QTreeWidgetItem functions on each item of my QList such as "selection.at(i).text(0)" but it doesnt work as the QList contains pointers to each item. I couldnt figure out how to turn each item into an actual QTreeWidgetItem so I can apply QTreeWidgetItem´s functions to them. Any idea?

thanx in advance

Pat