11-23-2020, 06:34 PM | #1 |
Connoisseur
Posts: 70
Karma: 21074
Join Date: Nov 2020
Location: Perth, Western Australia
Device: Apple Books & Kobo Libra H20
|
Scrolling the book details panel
Hi folks,
I'm making the world's most boring plug-in to scroll the book details panel in response to a spacebar if there is more then one "page" of book info: Code:
self.gui.book_details.book_info.moveCursor(QTextCursor.End) I tried Code:
QTextCursor.NextBlock Any thoughts? Basically looking for the equivalent of clicking on the scroll bar, or sending a "Page Down" keypress. Smooth scrolling would be a bonus, but I don't think that's possible. |
11-23-2020, 10:45 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
book_info.verticalScrollbar().triggerAction(QAbstr actSlider.SliderPageStepAdd)
|
11-24-2020, 01:14 AM | #3 |
Connoisseur
Posts: 70
Karma: 21074
Join Date: Nov 2020
Location: Perth, Western Australia
Device: Apple Books & Kobo Libra H20
|
Thanks Kovid. (Capital B in verticalScrollBar but all good.)
A PageStep was just a smidgen too far, so I subtracted a SingleStep and got the results I was looking for. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Book details panel | luciaisacat | Library Management | 7 | 05-26-2017 04:24 AM |
Lost my book details panel | ElspethB | Calibre | 1 | 09-09-2016 01:11 PM |
Book Details panel suddenly not scrollable | Sirtel | Calibre | 3 | 01-12-2015 05:05 PM |
Book Details Panel Position | sophieturgeon | Calibre | 2 | 12-27-2014 08:08 AM |
Metadata does not show in Book Details Panel | Mamaijee | Library Management | 9 | 12-19-2012 02:33 AM |