[PyQt] Scroll QTableView beyond last column/row

David Cortesi davecortesi at gmail.com
Thu Aug 29 00:35:46 BST 2013


How about defining some "extra" rows and columns?

Then, in your data() method, if the column (or row) index is beyond the
"real" data, you return a string of blanks for the display role, and a 50%
gray brush for the  Background role.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130828/325fe8c8/attachment.html>


More information about the PyQt mailing list