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.
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt