From d46fe913a5678842f09eb482e09b72dd553423e5 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Fri, 21 May 2021 18:59:53 +0200 Subject: [PATCH] Scroll pixels instead of columns horizontally --- qt/aqt/browser/table/table.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt/aqt/browser/table/table.py b/qt/aqt/browser/table/table.py index ed3a7dd6e..aa97827b8 100644 --- a/qt/aqt/browser/table/table.py +++ b/qt/aqt/browser/table/table.py @@ -270,6 +270,8 @@ class Table: self._view.selectionModel().selectionChanged, self.browser.onRowChanged ) self._view.setWordWrap(False) + self._view.setHorizontalScrollMode(QAbstractItemView.ScrollPerPixel) + self._view.horizontalScrollBar().setSingleStep(10) self._update_font() if not theme_manager.night_mode: self._view.setStyleSheet(