Check scroll being scrolled
-
hello guys,
i have a qtextbrowser in my app and i want to check if the scroll is scrolled down to the end of the page. Something similar to agreement reading.
Could somebody please point me to the right direction, how to do it.
thanks
-
You an do the following:
@
connect(myTextBrowser->verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(onVerticalScrollBarValueChanged()));
....
void MyTextBrowser::onVerticalScrollBarValueChanged()
{
if( myTextBrowser->verticalScrollBar()->value() == myTextBrowser->horizontalScrollBar()->maximum() )
{
.... //do your stuff here
}
}
@