Re: Shortcuts are broken. Qt or PyQts fault?
Kyle Altendorf <[email protected]>
| Newsgroups | gmane.comp.python.pyqt-pykde |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] https://www.riverbankcomputing.com/mailman/listinfo/pyqt