PDA

View Full Version : QTreeWidget update problem



Eduardo Huerta
17th February 2020, 22:38
Hi, I have a problem with QTreewidget, it is not updated correctly when you scroll down the bar (see attached image). How do I update the QTreeWidget by moving the bar down?
I thought of treeWidget-> repaint () in a slot function but I don't have a scroll bar signal.
Thanks

d_stranz
18th February 2020, 04:03
QTreeWidget should automatically repaint when scrolled. It looks like you might have implemented delegates for certain columns, and my guess is that you have done this incorrectly. If I were to guess again, it looks like the QRect that is being used for the delegate's location is not being updated when the widget is scrolled because it looks like the delegate is being "left behind" as the rest of the view moves.