[Interest] dragLeaveEvent never called & nested widget class
Etienne Sandré-Chardonnal
etienne.sandre at m4x.org
Mon Feb 27 10:06:24 CET 2017
Just to clarify, ParameterWidget is a namespace, not a class.
So putting a QWidget subclass inside a namespace did break dragLeaveEvent
2017-02-27 10:04 GMT+01:00 Etienne Sandré-Chardonnal <etienne.sandre at m4x.org
>:
> 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/2064aa32/attachment.html>
More information about the Interest
mailing list