[PyQt] Shortcuts are broken. Qt or PyQts fault?

hgn hgn at posteo.org
Sat May 4 20:48:57 BST 2019


Thanks for all the answers.

It is "good" to know that PySide has the same problem. I am also on 
Linux and I know it worked in some previous PyQt5 version (as well as 
PyQt4).

So we can assume that this is indeed a C++ Qt problem. That means I need 
to learn C++ just to write the example for the Qt bugtracker :(

yours
hgn

Am 03.05.2019 16:54 schrieb Kyle Altendorf:
> On 2019-05-03 08:20, Baz Walter wrote:
>> 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:
> 
> ctrl+1 (numpad or 'regular') gave me "Foo Bar", just 1 (numpad or
> 'regular') did nothing.  On Debian X11, Python 3.7.2, PyQt 5.12.1
> (PyPI).  So maybe it's a Linux thing?  Guess we'll have to wait for a
> followup from hgn.
> 
>> (PS: I also tried the script with both PySide and PySide2, and I get
>> exactly the same results as with PyQt4/PyQt5).
> 
> Well, that seems a good indicator there's a Qt issue at blame.  :]
> 
> Cheers,
> -kyle
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt


More information about the PyQt mailing list