[Interest] Restore default mouse event handling without subclassing

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Tue Feb 4 14:06:10 CET 2014


Dear all,

I have the following issue : QGroupBox is handling mouse events (press,
release, move) and accepts them, preventing propagation to parents. However
it does nothing with the events.

I have toolbox widgets which handle mouse events not handled by children,
so that they can be grabbed and moved/scrolled by clicking on any unactive
area.
This actually works well, except with group box, which block events but do
nothing with them. And if the toolbox is organized with QGroupBox'es, most
inactive areas belong to them.

Installing event filters is not really an option, because they are not
always directly children of the toolbox, which knows nothing about its
contents.

Do you have any idea on how to implement that?

Cheers,

Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140204/1b578158/attachment.html>


More information about the Interest mailing list