Qt 6.11 is out! See what's new in the release
blog
In QTableView, how to the text within the cells is always within the visible range.
-
The current approach involves overriding the paint method within a delegate, and recalculating the rectangle.
auto visiableRect = view->viewport()->rect(); opt.rect = opt.rect.intersected(visiableRect);However, this approach fails to fully redraw the corresponding complete cell regions when the QTableView is scrolled, resulting in a rendering discrepancy.
Is there another method to achieve the same functionality?