QTreeWidgetItem *item = currentItem(); will give you current selected item.
you can read item text by
QString itemName = item->text(0);
you can read data like:
QString itemID = item->data(0,Qt::AccessibleDescriptionRole).toString( );
QTreeWidgetItem *item = currentItem(); will give you current selected item.
you can read item text by
QString itemName = item->text(0);
you can read data like:
QString itemID = item->data(0,Qt::AccessibleDescriptionRole).toString( );
Rajesh Kumar Singh
Bangalore, India.
Qt Search
Must Watch:
See how we can connect digital world objects to our day to day life….
Bookmarks