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 99 - QAction.setShortcut fails when called with StandardKey argument
: QAction.setShortcut fails when called with StandardKey argument
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2009-11-26 03:02 EET by itkach
Modified: 2010-03-24 16:38 EET (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description itkach 2009-11-26 03:02:41 EET
Attempt to set shortcut to a standard key like this

my_action.setShortcut(QKeySequence.ZoomOut)

fails with error

Boost.Python.ArgumentError: Python argument types in
    QAction.setShortcut(QAction, StandardKey)
did not match C++ signature:
    setShortcut(QAction {lvalue}, QKeySequence)

This is with PySide 0.2.2 on Ubuntu 9.10.
Comment 1 Luciano Wolf 2009-12-14 17:01:57 EET
Fixed on commit: 

http://qt.gitorious.org/pyside/pyside/commit/871fc917e19d6b4eac1ac58e1aaca0e280c144da

Added implicity_conversion for QKeySequence type.