[Interest] How to get/manipulate the scrollbars of QWebView
Frank Hemer
frank at hemer.org
Fri Jan 25 15:36:55 CET 2013
On Friday 25 January 2013 15:05:38 Wilhelm wrote:
> Am 25.01.2013 14:04, schrieb Frank Hemer:
> > On Friday 25 January 2013 13:47:45 Wilhelm wrote:
> >> Hi all,
> >>
> >> this may be a very dumb question: how get access to the scrollbars of a
> >> QWebView?
> >>
> >> I want to connect to the sliderMoved() signal to store the actual
> >> position for later use.
> >
> > You can use javascript to achieve this:-)
>
> Well, that's weird!
>
> No chance from C++ to do this?
Then I guess you're looking for this:
QWebFrame * frame = webView->page ()->mainFrame ();
and use frame's methods:
scrollPosition/scrollBarValue and setScroppPosition/setScrollBarValue
Frank
More information about the Interest
mailing list