Add kinetic scrolling.
This commit is contained in:
parent
6a71f342f0
commit
74cb24ae97
8
main.py
8
main.py
@ -6,9 +6,8 @@ import sys
|
||||
import time
|
||||
|
||||
from PySide2.QtCore import QObject, QThread, Signal, Slot
|
||||
from PySide2.QtWidgets import (QApplication, QDialog, QGroupBox, QHBoxLayout,
|
||||
QLabel, QLineEdit, QProgressBar, QPushButton,
|
||||
QScrollArea, QTabBar, QVBoxLayout, QSplitter, QFrame)
|
||||
from PySide2.QtWidgets import (QApplication, QDialog, QLabel, QLineEdit, QProgressBar, QScrollArea, QTabBar,
|
||||
QVBoxLayout, QFrame, QScroller)
|
||||
|
||||
import doc_manager
|
||||
|
||||
@ -50,6 +49,9 @@ class Dialog(QDialog):
|
||||
|
||||
self.results = QScrollArea(widgetResizable=True)
|
||||
layout.addWidget(self.results)
|
||||
QScroller.grabGesture(
|
||||
self.results.viewport(), QScroller.LeftMouseButtonGesture,
|
||||
)
|
||||
|
||||
# Options
|
||||
self.tabBar = QTabBar(shape=QTabBar.RoundedSouth)
|
||||
|
Loading…
Reference in New Issue
Block a user