[PyQt] QLineEdit vs. menu keyboard shortcuts

Yaşar Arabacı yasar11732 at gmail.com
Thu Jun 30 23:41:54 BST 2011


Wow, I can't describe epicness of this :) Didn't know such thing existed :)

2011/7/1 Baz Walter <bazwal at ftml.net>

> On 30/06/11 16:56, Nathan Weston wrote:
>
>> On 6/30/2011 10:44 AM, Nathan Weston wrote:
>>
>>> On 6/29/2011 6:16 PM, Baz Walter wrote:
>>>
>> I updated to the latest Qt/PyQt and it's working now. My original
>> application is working correctly as well.
>>
>
> glad you got it working.
>
> one final thought: rather stupidly, i completely forgot about
> QEvent.ShortcutOverride, which may well be exactly what you were originally
> looking for.
>
> it could be used something like this:
>
>    def event(self, event):
>        if (not self._editable and
>            event.type() == QEvent.ShortcutOverride):
>            return False
>        return QLineEdit.event(self, event)
>
> better late than never, i suppose :/
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110701/34ef0c30/attachment-0001.html>


More information about the PyQt mailing list