Hi, I would like to simply disable mouse wheel scroll on QScrollArea, in
order to scroll down only by clicking on right scrollbar, but I can't find
any solution on the Internet.
app = QtGui.QApplication([])
sa = pg.QtGui.QScrollArea()
screen_resolution = app.desktop().screenGeometry()
scwidth, scheight = screen_resolution.width(), screen_resolution.height()
win = pg.GraphicsWindow()
win.setFixedHeight((scheight*1740)/1080)
win.setFixedWidth(scwidth-20)
win.addViewBox()
sa.setWindowTitle("Meteo Station Graph")
sa.setWidget(win)
sa.showMaximized()
pg.setConfigOptions(antialias=True)
The problem is that I have a lot of graphs in my scroll area, and when I
try to mousewheel on one of them, the page will scroll up or down together
with the graph.
Thank you in advance if you can help me with this problem.
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/38cb18c0-f5f3-4df4-831f-724a135f5aa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.