[Qt-interest] Signal emitted while scrolling in QTextEdit

Ankit Agarwal ankit17.ag at gmail.com
Tue Mar 10 18:36:35 CET 2009


check out void QAbstractSlider::sliderMoved ( int *value* )

On Tue, Mar 10, 2009 at 10:56 PM, Ferenc Stelcz <ferenc at stelcz.hu> wrote:

> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090310/6dda3c00/attachment.html 


More information about the Qt-interest-old mailing list