High John, Thanks for the link!
This seems similar to the problem I described. Only in my case it's the mouse click event instead of the mouse wheel. I'll check out the Qt source code soon and see if the same problem exists there, too. Thanks again! cg ________________________________________ From: John Weeks <j...@wavemetrics.com> Sent: Friday, May 20, 2016 12:00:06 AM To: Chris Gripeos Cc: interest@qt-project.org Subject: Re: [Interest] Qt5.6: Mouse clicks on ScrollBars also gets passed to widgets behind them See https://bugreports.qt.io/browse/QTBUG-49549 > On May 19, 2016, at 1:40 PM, Chris Gripeos <chris.grip...@harmonixmusic.com> > wrote: > > > Hello, > > I'm not sure if this is the right place to ask this question. > > I just noticed that when I click on a Scrollbar of a Widget, any child > Widgets that might be right behind the scroll bar at the position of the > mouse click, will also get the mouse click event. > > So, if you have a QTextEdit behind the Scrollbar and you click on the > Scrollbar right where the Scrollbar overlaps the QTextEdit, the QTextEdit > widget will come to focus. > > Is this the defined behavior? Or is it perhaps a bug? > > If this is the defined behavior, is there a way to disable it so that the > scroll bar consumes the event and prevents it from getting passed to any > widgets behind it? > > Thanks in advance for any help. > > cg -John Weeks WaveMetrics, Inc. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest