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 167 - Incorrect "bool" parameter passed to slot (QMenu.addAction())
: Incorrect "bool" parameter passed to slot (QMenu.addAction())
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 0.2.3
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-02-23 17:18 EET by Anderson Lizardo
Modified: 2010-06-07 09:28 EEST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anderson Lizardo 2010-02-23 17:18:15 EET
The slot passed as argument to QMenu.addAction() is getting an incorrect
parameter (a boolean, always set as false). This snippet shows the problem:

from PySide import QtGui
app = QtGui.QApplication([])
fileMenu = QtGui.QMenu("&File")
def openFile(*args):
    print "args:", args
x = fileMenu.addAction("&Open...", openFile)
x.trigger()

It prints "args: (False,)" for shiboken, but should print "args: ()" instead.
Comment 1 Anderson Lizardo 2010-02-23 17:21:29 EET
By the way, this bugs is responsible for breaking
examples/richtext/syntaxhighlighter.py.
Comment 2 Hugo Parente Lima 2010-05-07 16:50:15 EEST
Fixed in commit pyside-shiboken/e58db20b0fe32beb87365e74cf29fc45bb8ce603
Comment 3 renato filho 2010-06-07 09:28:17 EEST
released 0.3.2.