[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QLineEdit vs. menu keyboard shortcuts
From:       Yaşar_Arabacı <yasar11732 () gmail ! com>
Date:       2011-06-30 22:41:54
Message-ID: CAFEUn8aQhwvgnjsfsXExzN7nz=_E7naixhu6__bJBxJMZHY2AA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

2011/7/1 Baz Walter <bazwal@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@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

[Attachment #5 (text/html)]

Wow, I can&#39;t describe epicness of this :) Didn&#39;t know such thing existed \
:)<br><br><div class="gmail_quote">2011/7/1 Baz Walter <span dir="ltr">&lt;<a \
href="mailto:bazwal@ftml.net">bazwal@ftml.net</a>&gt;</span><br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"><div class="im">On 30/06/11 16:56, Nathan Weston wrote:<br> \
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="im"> On 6/30/2011 10:44 AM, Nathan Weston \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> On 6/29/2011 6:16 PM, Baz Walter wrote:<br>
</blockquote></div><div class="im">
I updated to the latest Qt/PyQt and it&#39;s working now. My original<br>
application is working correctly as well.<br>
</div></blockquote>
<br>
glad you got it working.<br>
<br>
one final thought: rather stupidly, i completely forgot about \
QEvent.ShortcutOverride, which may well be exactly what you were originally looking \
for.<br> <br>
it could be used something like this:<br>
<br>
    def event(self, event):<br>
        if (not self._editable and<br>
            event.type() == QEvent.ShortcutOverride):<br>
            return False<br>
        return QLineEdit.event(self, event)<br>
<br>
better late than never, i suppose :/<div><div class="h5"><br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</div></div></blockquote></div><br>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic