[PyQt] set Vertical Offset in a treeview
Jake Richards
blaven at gmail.com
Tue Feb 26 19:57:59 GMT 2008
Hello:
I am trying to basically bookmark a spot in a tree view and then return to
it later. For example, say I'm looking about 1/3 the way down a large tree,
I want to set a bookmark so if I scroll way down to the bottom of the tree
with the scrollbars, I can quickly go back to where I was. I see the
scrollToItem method and the verticalOffset but I am having trouble with
both. For scrollToItem, I'm not sure how to get the first visible item in
the current view. And with verticalOffset, I'm not sure how to use the
offset it returns to set the scrollbars back to where I bookmarked. Does
anyone know how to accomplish either of these tasks? Or, is there a better
way? Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080226/a50aa623/attachment.html
More information about the PyQt
mailing list