Le 19/04/2013 04:20, Benjamin Le Cam a écrit :
The Horizontal Scroll Bar issue interests me. It looks like to be a
major issue for many people so that would a great thing done. I
already have a good background with Qt and so I'm wondering what
there is no use of QScrollArea in order to have a horizontal scroll
bar needed?
Hello Ben,
I am not sure what QScrollArea does, but we do not want to paint the
whole document (that could be 100+ pages long) and have Qt manage what
should be displayed.
I already had to deal with this kind of issue and this is mostly how
I solved it. I also read in the mailing list that a person mentionned
that it would require to use QPainter to draw a custom scrollbar. In
my opinion this is not needed as Qt provides already some good
widgets to handle this.
The problem in this case is that our WorkArea object is not prepared to
host scrollbars inside it. Also, my original thinking was that having a
global horizontal scrollbar that would scroll the whole window would be
ugly, in particular in cases when one want to edit a large equation: the
result would just be an empty screen with the large equation in the
middle. So the thinking was that we should just scroll the equation and
let the rest of the text unchanged. Of course this requires some changes
in the interface to make things obvious.
I hope these thoughts help.
JMarc