Re: [PyQt] Scroll QTableView beyond last column/row

2013-09-03 Thread Mark Mordeca
9-13 4:29 PM *To:* Mark Mordeca *Cc:* pyqt@riverbankcomputing.com *Subject:* Re: [PyQt] Scroll QTableView beyond last column/row Hmmm. I haven't seen that behavior, but it might be specific to particular Qt versions (I'm on a slightly old one). I think the general idea of only futzing with the scrolla

Re: [PyQt] Scroll QTableView beyond last column/row

2013-08-29 Thread Paul Du Bois
; Appreciate your help. > > > > *From:* Paul Du Bois [mailto:dub...@doublefine.com] > *Sent:* August-28-13 4:34 PM > *To:* Mark Mordeca > *Cc:* pyqt@riverbankcomputing.com > *Subject:* Re: [PyQt] Scroll QTableView beyond last column/row > > > >

Re: [PyQt] Scroll QTableView beyond last column/row

2013-08-29 Thread Mark Mordeca
find a way to avoid this? Appreciate your help. *From:* Paul Du Bois [mailto:dub...@doublefine.com] *Sent:* August-28-13 4:34 PM *To:* Mark Mordeca *Cc:* pyqt@riverbankcomputing.com *Subject:* Re: [PyQt] Scroll QTableView beyond last column/row I do this: # somewhere in init

Re: [PyQt] Scroll QTableView beyond last column/row

2013-08-28 Thread David Cortesi
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 lis

Re: [PyQt] Scroll QTableView beyond last column/row

2013-08-28 Thread Paul Du Bois
I do this: # somewhere in init self._last_vsb_height = None self.verticalScrollBar().rangeChanged[int,int].connect(self._on_range_changed) def _on_range_changed(self, min, max): # Try to prevent infinite recursion # Count is in rows if max != self._las

[PyQt] Scroll QTableView beyond last column/row

2013-08-28 Thread Mark Mordeca
Greetings, I have a simple QTableView connected to an QAbstractTableModel. For the purposes of my question, let’s assume that these are the most basic you can have in order to get a table with data in it. Default behaviour is that you can scroll the table so that the last column/row becomes