If you control the HTML that's displayed you can use the CSS property overflow: hidden as a workaround. Otherwise, I'm afraid you're out of luck with the current snapshots.
On Mon, Nov 24, 2008 at 21:36, Chris Kurecka <[EMAIL PROTECTED]> wrote: > I have a problem with scrollbars in my QWebView. I need them to never > be displayed. I've tried the following: > > webView->page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal, > Qt::ScrollBarAlwaysOff); > webView->page()->mainFrame()->setScrollBarPolicy(Qt::Vertical, > Qt::ScrollBarAlwaysOff); > > Since I figured the page may be destroyed between reloads, I run those > two commands after setUrl() as well. However, I ALWAYS get the behavior > of Qt::ScrollBarAsNeeded. I have verified via qDebug that the value is > Qt::ScrollBarAlwaysOff, but scrollbars are still drawn when the QWebView > is made small. > > Anyone know why this is or how to fix it? > > Thanks, > > Chris Kurecka > Zattoo Software Engineer > > _______________________________________________ > Qt4-preview-feedback mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback > -- Arend van Beelen jr. "If you want my address, it's number one at the end of the bar." _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
