From 4a95745b71a41fc42c6e550d694ed57b4f569b6c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 19 Jan 2014 17:39:06 +0100 Subject: [PATCH] webview: Turn off scrollbars --- qutebrowser/widgets/browser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qutebrowser/widgets/browser.py b/qutebrowser/widgets/browser.py index e883bbd80..3e9c11171 100644 --- a/qutebrowser/widgets/browser.py +++ b/qutebrowser/widgets/browser.py @@ -1,4 +1,4 @@ -from PyQt5.QtCore import QObject, pyqtSlot, QUrl, pyqtSignal +from PyQt5.QtCore import QObject, pyqtSlot, QUrl, pyqtSignal, Qt from PyQt5.QtPrintSupport import QPrintPreviewDialog from PyQt5.QtWebKitWidgets import QWebView from qutebrowser.widgets.tabbar import TabWidget @@ -134,6 +134,9 @@ class BrowserTab(QWebView): def __init__(self, parent): super().__init__(parent) + frame = self.page().mainFrame() + frame.setScrollBarPolicy(Qt.Horizontal, Qt.ScrollBarAlwaysOff) + frame.setScrollBarPolicy(Qt.Vertical, Qt.ScrollBarAlwaysOff) self.loadProgress.connect(self.set_progress) self.show()