[Development] QPushButton: drag and drop

Laszlo Papp lpapp at kde.org
Fri Jun 10 06:43:48 CEST 2022


On Thu, Jun 9, 2022 at 4:20 PM Volker Hilsheimer <volker.hilsheimer at qt.io>
wrote:

> > I am not asking for a fake release event myself, just the usual one. If
> someone manages the state restore manually, that would not be broken by the
> usual release happening as far as I can see.
>
> You are asking for a release event to be delivered to a widget, even
> though the release event was already handled (and eaten) by the modal
> state. That’s a fake/synthesized event in my book. And if we deliver such
> an event, then we have to deliver the event to any widget that starts a
> drag. And since by overriding mousePressEvent, any widget can start a drag,
> all widgets have to handle that new release event, if only by ignoring it
> if the source is some new SynthesizedByQtForReasons flag.
>

I have an opposing view to this. In my opinion, the release event would be
native, natural and intuitive here. In my opinion, what is fake is what
QDrag is currently here. It does something unnatural and unintuitive.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20220610/349ba848/attachment.htm>


More information about the Development mailing list