[Interest] QEvent problem

Berkay Elbir berkayelbir at gmail.com
Wed May 27 07:03:14 CEST 2015


Yeah. I think that is the reason. I have multiple widgets and some widgets
are created in another widget. So I need to arrange these shortcuts with
event filter or something like that I do not know yet.
Thanks for replies.

On Tue, May 26, 2015 at 8:14 PM, Matthew Woehlke <
mw_triad at users.sourceforge.net> wrote:

> On 2015-05-26 09:10, Berkay Elbir wrote:
> > I want to mention an issue that I have faced. I have an event filter of a
> > widget and when I press "Delete" button, event types coming to event
> Filter
> > changes.
> >
> > [...] when I press "Delete" button, it sometimes [has the event type]
> > KeyRelease instead of Shortcut then I press again, it [is Shortcut].
>
> Do you have a QAction / QShortcut with the key sequence 'del'? Does the
> behavior change based on what widget has focus? Or whether some other
> widget is disabled or not?
>
> My first guess is that there is a QShortcut somewhere that is set to
> consume the delete key, that sometimes is "active" (enabled, and in
> scope w.r.t. its context given the widget that has focus) and sometimes
> is not, and that is what causes the difference you are seeing.
>
> --
> Matthew
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150527/aec06d77/attachment.html>


More information about the Interest mailing list