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 738 - QtGui.QSlider signals and slots error
: QtGui.QSlider signals and slots error
Status: CLOSED DUPLICATE of bug 736
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: PC MS Windows XP/Vista/7
: P5 enhancement
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-03-17 04:01 EET by Gerald
Modified: 2011-04-01 23:16 EEST (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 Gerald 2011-03-17 04:01:14 EET
As copied from the mailing list.

I'm trying to get Matplotlib up and running on PySide with some quick hacks on
the PyQt backend and I'm having some trouble with the sliders.

This code:
        QtCore.QObject.connect( self.sliderleft,
                                QtCore.SIGNAL( "valueChanged(int)" ),
                                self.sliderright.setMinimum )

produces the following error:
Error calling slot "setMinimum"
TypeError: setMinimum() takes exactly one argument (0 given)


The following test program also creates the error when moving the first slider:
import sys
from PySide import QtGui,QtCore

def test(*args):
    print len(args),args

app = QtGui.QApplication(sys.argv)

slider = QtGui.QSlider(QtCore.Qt.Horizontal)
slider2 = QtGui.QSlider(QtCore.Qt.Horizontal)

slider.valueChanged[int].connect(test)
slider.valueChanged[int].connect(slider2.setMaximum)

slider.show()
slider2.show()
app.exec_()
sys.exit() 

The test function clearly receives one argument but for some reason setMaximum
and setMinimum do not.
Comment 1 Gerald 2011-03-17 11:51:32 EET

*** This bug has been marked as a duplicate of bug 736 ***
Comment 2 Hugo Parente Lima 2011-04-01 23:16:10 EEST
Closing bug after release of PySide 1.0.1.