[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] set Vertical Offset in a treeview
From:       "Jake Richards" <blaven () gmail ! com>
Date:       2008-02-26 19:57:59
Message-ID: 8467e2d90802261157j56a33c16q27407c27c223af () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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!

[Attachment #5 (text/html)]

Hello:<br>&nbsp; I am trying to basically bookmark a spot in a tree view and then \
return to it later.&nbsp; For example, say I&#39;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.&nbsp; I see the \
scrollToItem method and the verticalOffset but I am having trouble with both.&nbsp; \
For scrollToItem, I&#39;m not sure how to get the first visible item in the current \
view.&nbsp; And with verticalOffset, I&#39;m not sure how to use the offset it \
returns to set the scrollbars back to where I bookmarked.&nbsp; Does anyone know how \
to accomplish either of these tasks?&nbsp; Or, is there a better way?&nbsp; \
Thanks!<br>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic