PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 1121 - QtGui.QAction.setShortcut parameters are wrongly restricted
: QtGui.QAction.setShortcut parameters are wrongly restricted
Status: UNCONFIRMED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: PC Linux
: P5 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2012-01-15 14:08 EET by Joel B. Mohler
Modified: 2012-03-09 03:06 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel B. Mohler 2012-01-15 14:08:14 EET
Note the following transcript from iPython with Qt 4.7.4 and PySide 1.1.0 on
ubuntu.  I believe the QAction.setShortcut call on "In [4]" should succeed
(and, in fact, the error message itself seems to confirm that belief in an
ironic twist).  This seems like a twin of
http://bugs.pyside.org/show_bug.cgi?id=1097


In [1]: from PySide import QtCore, QtGui

In [2]: app=QtGui.QApplication([])

In [3]: act=QtGui.QAction("testing", None)

In [4]: act.setShortcut(QtCore.Qt.Key_F9)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/joel/<ipython console> in <module>()

TypeError: 'PySide.QtGui.QAction.setShortcut' called with wrong argument types:
  PySide.QtGui.QAction.setShortcut(PySide.QtCore.Qt.Key)
Supported signatures:
  PySide.QtGui.QAction.setShortcut(PySide.QtGui.QKeySequence)

In [5]: act.setShortcut(QtGui.QKeySequence(QtCore.Qt.Key_F9))
Comment 1 Matti Airas 2012-03-08 16:57:25 EET
PySide is now a Qt-addon and uses Qt Project's JIRA tool for tracking bugs.
Please verify that the bug is still valid and re-submit it in the address
below:

https://bugreports.qt-project.org/

Sorry for the inconvenience!
Comment 2 Joel B. Mohler 2012-03-09 03:06:14 EET
Reported on jira at 
https://bugreports.qt-project.org/browse/PYSIDE-19