Hi,
I've got a QTableWidget with a custom item delegate and I'd like to repaint it when the user selects an item in a QComboBox.
I tried both, QTableWidget::update() and, directly, QTableWidget::repaint(), but it didn't work. I think, the problem is that QTableWidget doesn't have focus but QComboBox does after selecting an item. If I replace QTableWidget::update() with QTableWidget::setFocus(), it works great and it does the repainting automatically.
Hence, I could do it with QTableWidget::setFocus(), but I think it is not the usual way and I'd like to do it the smart way... Does anyone know how I can update the QTableWidget without setting the focus to it?
Bookmarks