Shortcut declaration not compatible with PySide2
Taurus applications that uses ValuesTable widget fails to show its widget. PyQt5 allows the definition of Shortcuts either by using Qt.QKeySequence, or a particular PyQt5 interface that uses singular Qt.KEY or lists of Qt.KEY. PySide2 only allows the definition of shortcuts as Qt.QKeySequence, a list of Qt.QKeySequence or a special formatted str.
How to reproduce: under pyside2, execute:
taurus form 'eval:rand(5,5)'
or
python -m taurus.qt.qtgui.table.taurusvaluestable 'eval:rand(5,5)'
A solution, would be to translate all Shortcut definitions from notation like this:
self._pauseAction.setShortcuts([Qt.Qt.Key_P, Qt.Qt.Key_Pause])
to this:
self._pauseAction.setShortcuts([Qt.QKeySequence(Qt.Qt.Key_P), Qt.QKeySequence(Qt.Qt.Key_Pause)])
Only lib/taurus/qt/qtgui/table/taurusvaluestable.py is affected. All other instances already use QKeySequence in some manner.
Edited by Arturo Hoffstadt Urrutia