[Qt-interest] Signal emitted while scrolling in QTextEdit

Ferenc Stelcz ferenc at stelcz.hu
Tue Mar 10 18:26:27 CET 2009


Hi!

QTextEdit has a member function verticalScrollBar() which returns you 
the vertical scrollbar. From here on you can grab the signals emitted by 
that scrollbar. (I don't know exactly if the signals of the scrollbar 
are emitted if the user scrolls with the mouse wheel).


Keshava Krishna wrote:
> Hi,
> 
> 'm building a text editor using QTextEdit, the user can scroll through the
> text document by using vertical scrollbar.
> i want a signal to be emitted whenever the document is scrolled through
> (even though the cursor position is not changed),
> also it would be helpful if i get to know the offsets (character count) of
> the 1st and the last character that is currently visible in the Text Area.
> Please suggest me a way to do it.
> 
> Regards,
> Keshava.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
	



More information about the Qt-interest-old mailing list