views:

55

answers:

2

How can read selected items from QTableWidget?

Thanks

A: 

Use the selectedItems function to retrieve the selected items or the selectedIndexes to get all selected cells including empty ones.

Patrice Bernassola
A: 

the best way to access the items in a qtablewidget is using the function

QList QTableWidget::selectedRanges () const

Huzy