hey all,
##########################################
my current setup...
os: windows 7 Pro 64
maya: 2014 x64 (version 20130301024-864206)
##########################################
the issue...
running the following code and clicking either of the buttons consistently crashes maya.
the error seems to be an "Unhandled Exception"
i have whittled it down to the issue being the QSignalMapper
##########################################
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class Test(QWidget):
def __init__(self, parent=None):
super(Test, self).__init__(parent)
layout = QVBoxLayout()
self.b1 = QPushButton("B1")
self.b2 = QPushButton("B2")
layout.addWidget(self.b1)
layout.addWidget(self.b2)
self.setLayout(layout)
self.mapper = QSignalMapper(self)
self.mapper.setMapping(self.b1, "B1")
self.mapper.setMapping(self.b2, "B2")
self.b1.clicked.connect(self.mapper.map)
self.b2.clicked.connect(self.mapper.map)
self.mapper.mapped[QString].connect(self.sayIt)
@pyqtSlot(QString)
def sayIt(self, name):
print name
t = Test()
t.show()
##########################################
anyone have any insight on this one?