Printing Support - brainstorm.

Lubomir I. Ivanov neolit123 at gmail.com
Fri Jul 19 08:44:42 PDT 2013


On 19 July 2013 00:05, Tomaz Canabrava <tcanabrava at kde.org> wrote:
> ui->tableWidget->rowHeight(r);

(see attachment; compile with qmake/make)

i've created an external (to subsurface), partial test of the
QTableView performance and just found out that tableView->rowHeight()
is a major slowdown operation...

(test code can be seen in MainWindow::fillTable())

results with incrementing variable 'tableHeight' with the last row
height using QTableView::rowHeight():
total_dives: 378 tableHeight: 21330 elapsed time: 11223 ms

results without incrementing 'tableHeight'
total_dives: 378 tableHeight: 0 elapsed time: 16 ms

as you can the rowHeight() code is ~700 times slower.

but without obtaining the size of the last added row i don't see how
we could estimate if a new row goes to a new page...any pointers would
be appreciated, of course. until then i'm tempted to abandon further
testing on the table print.

lubomir
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt-test_19072013_18424649.zip
Type: application/zip
Size: 7609 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130719/0de559e4/attachment-0001.zip>


More information about the subsurface mailing list