[webkit-help] WebKit2 and Scrollbars
Nick Guenther
Nick.Guenther at dossierview.com
Tue Feb 8 12:58:43 PST 2011
> From: achellies [mailto:achellies at 163.com]
> Sent: Tuesday, February 08, 2011 7:38 AM
> To: Nick Guenther
> Subject: Re:[webkit-help] WebKit2 and Scrollbars
>
> Hi, please do me a favor to tell me how to disable the srcollbars with qtwebkit.
>
> Thanks in advance.
Here you go!
http://cutycapt.svn.sourceforge.net/viewvc/cutycapt/CutyCapt/CutyCapt.cpp?revision=6&view=markup
636 page.mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);
637 page.mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);
http://webscreenie.googlecode.com/svn/trunk/src/webscreenie.cpp
// Hide scrollbars
webview.page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);
webview.page()->mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);
Also have you seen
http://qt.gitorious.org/qt-labs/graphics-dojo/blobs/master/websnap/websnap.cpp
?
-Nick Guenther
DossierView.com
More information about the webkit-help
mailing list