> From: achellies [mailto:[email protected]] > 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 _______________________________________________ webkit-help mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
