[Interest] Qt5.6: Mouse clicks on ScrollBars also gets passed to widgets behind them

John Weeks john at wavemetrics.com
Thu May 19 23:00:06 CEST 2016


See https://bugreports.qt.io/browse/QTBUG-49549

> On May 19, 2016, at 1:40 PM, Chris Gripeos <chris.gripeos at 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.




More information about the Interest mailing list