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.