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

Chris Gripeos chris.gripeos at harmonixmusic.com
Thu May 19 22:40:21 CEST 2016


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160519/b18b8eea/attachment.html>


More information about the Interest mailing list