resizeSection is a better way to resize hight of all your rows...
it works fast, if you use setUpdatesEnabled...
the default row height you can't set at all.
here is an example... it's wrote on Qt3, but i think it will work on Qt4 similar...
verticalHeader()->setUpdatesEnabled(FALSE);
for (unsigned int i = 0; i < numRows(); i++)
verticalHeader()->resizeSection(i, rowHeight);
verticalHeader()->setUpdatesEnabled(TRUE);
verticalHeader()->setUpdatesEnabled(FALSE);
for (unsigned int i = 0; i < numRows(); i++)
verticalHeader()->resizeSection(i, rowHeight);
verticalHeader()->setUpdatesEnabled(TRUE);
To copy to clipboard, switch view to plain text mode
Bookmarks