![]() |
2010-12-06
, 17:24
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#2
|
![]() |
2010-12-06
, 18:23
|
Posts: 17 |
Thanked: 8 times |
Joined on Jul 2010
|
#3
|
I'm currently trying to learn PyQt, and I'm developing an ebook reader as a learning project. I'm using a QTextBrowser as my display widget (I need to display HTML) and I'd like to create a "scroll forward by one screen" button, so my reader would behave a bit more like FBReader. However, I have no idea how to do this. I figured I could assign a value to the QTextBrowser scrollbars, but I have no clue how to compute the appropriate value since it depends on the widget size, the current position in the text, etc...
Could you give me a few pointers here ? I don't mind searching by myself (it's a learning process after all), but I just don't know where to begin. And I'm not even sure my idea of assigning a value to the scrollbars is a good one to begin with.
Thanks