[Interest] dragLeaveEvent never called & nested widget class

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Mon Feb 27 10:04:34 CET 2017


Dear all,

I had a problem on a custom widget, where reimplemented dragEnterEvent and
dropEvent were properly called, but dragLeaveEvent was never called.

The event handling function were reimplemented in a "LinkWidget" class, and
then a ParameterWidget::LinkRefWidget was subclassing LinkWidget.

After many tries for making a MCVE, I figured out that un-nesting
LinkRefWidget was solving the issue.

Is this a bug, or is nesting QWidget subclasses officially unsupported?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170227/c133488d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QTBUG.7z
Type: application/octet-stream
Size: 3188 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170227/c133488d/attachment.obj>


More information about the Interest mailing list