[Qt-interest] Alignment of data in a QTableView

Robert Hairgrove evorgriahr at hispeed.ch
Sun Feb 6 16:34:01 CET 2011


After some more experimentation, I remembered that I called
resizeColumnsToContents() but not resizeRowsToContents() on the view. So
I added that step.

That helps, because the data is initially displayed as it should be. But
as soon as I (or the user) drags the row to resize it, the same
misalignment happens (see attached screenshot).

I will dig into the source code for the item delegate and see what I can
come up with.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: misaligned.png
Type: image/png
Size: 17757 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110206/34aaf280/attachment.png 


More information about the Qt-interest-old mailing list