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
; 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
>
>
>
>
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
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
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
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