[Qt-interest] Signal emitted while scrolling in QTextEdit

Keshava Krishna keshavkrishna88 at gmail.com
Tue Mar 10 18:43:23 CET 2009


ok,

but can i know the offsets (character count) of the 1st and the last
character that is currently visible in the Text Area??


On Tue, Mar 10, 2009 at 11:06 PM, Ankit Agarwal <ankit17.ag at gmail.com>wrote:

> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090310/bcda90bf/attachment.html 


More information about the Qt-interest-old mailing list