Quote Originally Posted by zlatko
1) connect some slot to signal itemDoubleClicked ( QTableWidgetItem * item ) of your QTabLeWidget
2) use catched QTableWidgetItem * item for setting bg color( method setBackgroundColor)
For a QTableView you would connect to signals like:
void QAbstractItemView::doubleClicked ( const QModelIndex & index )
void QAbstractItemView::entered ( const QModelIndex & index )


I don't see any particular signal for leaving an item. But of course you can save row/col or a persistent index for the previously colourized cell and uncolourize during the entered signal of another item and possibly leave event of the whole table view..