Re: Shortcuts are broken. Qt or PyQts fault?

Baz Walter <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
On 03/05/2019 09:02, Phil Thompson wrote:
> On 02/05/2019 22:29, hgn wrote:
>>> Not without a short, complete test script that demonstrates the problem.
>>>
>>> Phil
>>
>> I have attached a python file that will enable you to see the problem.
>> Run it from the terminal.
>> Press Ctrlr+1 to see "Foo Bar", press Numpad 1 (with numpad LED
>> active) to see "Hello World".
>>
>> Tested with Python 3.7.3 and 5.12.1
> 
> Works fine for me. Qt v5.12.3.
> 
> I'm on a Mac so it's Command-1 and the numpad is permanently active.
> 
> Phil

What happens when you press Numpad-1 alone (i.e. *without* the Command 
modifier)? This should trigger numpadAction and print "Hello World" 
instead of "Foo Bar".

When I test this on X11 with PyQt5, Numpad-1 alone does not work. 
However, when I test with PyQt4, it *does* work. I found a Qt4 bug 
report here:

     https://bugreports.qt.io/browse/QTBUG-20191

and a code review for a committed fix here:

     https://codereview.qt-project.org/#/c/15188

Ironically, this fix uses a backport from Qt5. I then discovered some 
more recent unresolved Qt5 bug reports here:

     https://bugreports.qt.io/browse/QTBUG-33093
     https://bugreports.qt.io/browse/QTBUG-50772

Not sure if the OP's previous discussions with the Qt devs stemmed from 
a bug report, but if so, it should probably be made a duplicate of one 
of the above.

(PS: I also tried the script with both PySide and PySide2, and I get 
exactly the same results as with PyQt4/PyQt5).
_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.