Get data from QTreeWidgetItem -> itemClicked
Unsolved
General and Desktop
-
Hi...
i have this signal/slot in QTreeWidgetItem :connect(ui->treeWidgetWiFis,SIGNAL(itemClicked(QTreeWidgetItem *,int)),this,SLOT(apri_connessione(QTreeWidgetItem*)));
The function apri_connessione have:
void MainWindow::on_treeWidgetWiFis_itemClicked(QTreeWidgetItem *item, int column) { }
How to get the data clicked in the item inside apri_connessione() ?
Thank you
Francesco -
item->data(column,Qt::EditRole)
http://doc.qt.io/qt-5/qtreewidgetitem.html#data -
1000 Thanks...
Can i get entire row data ?Now i get the item clicked, but is a table with:
| aaa | bbb | ccc |
| xxx | yyyy | zzz |
if click on zzz i get only the zzz while i need all row...Thanks
-
Many thanks..