[Qt-interest] QTableWidget painting is all funky
Paul England
pengland at cmt-asia.com
Sun Jan 24 13:24:33 CET 2010
It gets even more awesome:
If I make the dummy row a bit larger (20px height)
then the dummy row has the painting issue, and row 1 is fine.
O_o
> Got a real head scratcher here.
>
> I've got a QTableWidget which will have potentially a ton of updates...
> more than the eye can handle. So, I've implemented a simple model in
> which a cleaning routine runs every 250 milliseconds and makes necessary
> updates. The problem is that the top row sometimes takes several seconds
> to repaint, even though the routine logs that it's cleaning it regularly
> (before all the subsequent rows, as you'd expect). I've tried putting a
> dummy row in and get the same results, so it really has nothing to do w/
> the row number.
>
> I can trigger an event where rows 1 & 2 (0 is a blank) will need an
> update. 2 updates fine, 1 does not. Sometimes it updates after X
> seconds, sometimes not at all (until I do something like run the mouse
> over it). I can do the same thing to trigger an updates in rows 3 & 4.
> In such a case, they both update. I've used the same mechanism before
> with no issue. In fact, this one wasn't an issue on my machine until
> just today, although I had seen it on other machines for a couple of
> weeks now.
>
>
> I'm at a loss here, as it just doesn't make sense when I look at the code.
>
> Any insight would be appreciated.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list