I have a simple class based on QTreeWidget. In some cases (when value one of columns updated), I need to repaint it. I have a function which invokes when I need to update my widget:
void TreeWidget::updated()
{
/* some actions with cells */
/* here need to repaint widget */
this->update();
/* also I'm tried this->repaint(); */
}
But line this->update();
(or this->repaint();
) gave no results. Widget repaint only when I click on it.
So how can I repaint my widget?
viewport()->update();
– eyllanesc