Abdelrazak Younes wrote:
Jürgen Spitzmüller wrote:
Also I am puzzled that we need to memorize the scrollbar position. If we
move the internal cursor, won't the scrollbar automatically follow?
we can use ensureCursorVisible(), but then the window content will not
be at the same position. The impression is "jumping" content, which
looks ugly.
Not if you do that _before_ showing the contents, will it?
For that you need to catch the showEvent of the preamble module. Maybe
using an even filter in QDocumentDialog... This eventFilter thing looks
quite useful.
Anyway, maybe the simplest solution for now is to do as you've done.
Abdel.