[Webkit-unassigned] [Bug 29431] New: [Qt] QWebFrame::setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff) has no effect.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 18 07:45:20 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29431
Summary: [Qt]
QWebFrame::setScrollBarPolicy(Qt::Vertical,Qt::ScrollB
arAlwaysOff) has no effect.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Mac OS X 10.5
Status: NEW
Keywords: Qt
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: vestbo at webkit.org
This bug report originated from issue QTBUG-3366
<http://bugreports.qt.nokia.com/browse/QTBUG-3366>
--- Description ---
QWebFrame::setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff) has no
effect, and setScrollBarPolicy(Qt::Horizontal,Qt::ScrollBarAlwaysOff) has
similar issues.
Launch the browser with the patch below applied. Notice that vertical
scrollbars are rendered during load, but not once load has completed, but
appear again upon resizing the window. The vertical one is always there.
diff --git a/demos/browser/webview.cpp b/demos/browser/webview.cpp
index 6ba41ee..c85726b 100644
--- a/demos/browser/webview.cpp
+++ b/demos/browser/webview.cpp
@@ -170,6 +170,8 @@ WebView::WebView(QWidget* parent)
this, SLOT(downloadRequested(const QNetworkRequest &)));
page()->setForwardUnsupportedContent(true);
+
page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal,Qt::ScrollBarAlwaysOff);
+
page()->mainFrame()->setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff);
}
void WebView::contextMenuEvent(QContextMenuEvent *event)
@@ -222,6 +224,9 @@ void WebView::loadFinished()
<< "Url:" << url();
}
m_progress = 0;
+
+
page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal,Qt::ScrollBarAlwaysOff);
+
page()->mainFrame()->setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff);
}
void WebView::loadUrl(const QUrl &url)
fenglich at englich:qt/4.5:~/dev/qt-45/demos/bro
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list