hey all,
Im using a QList <QTreeWidgetItem *> to get all the selected item in my qtree.
Here is what its done:
Qt Code:
void Getmydistro::on_treeWidget_clicked() { QList <QTreeWidgetItem *> selection; selection << ui.treeWidget->selectedItems(); for(int i=0;i<selection.size();i++) { selection.at(i); qDebug() << selection.at(i); } }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
Bookmarks