[PyQt] Problem with KDialogButtonBox.addButton
Wolfgang Rohdewald
wolfgang at rohdewald.de
Tue Mar 2 09:03:42 GMT 2010
Hi,
how can I pass my own python slot to addButton?
def slotInsert(self):
pass
newItem = KGuiItem(QString("&New"), KIcon("document-new"))
self.newButton = self.buttonBox.addButton(newItem, KDialogButtonBox.ActionRole, self, self.slotInsert)
TypeError: KDialogButtonBox.addButton(): arguments did not match any overloaded call:
overload 1: argument 1 has unexpected type 'KGuiItem'
overload 2: argument 1 has unexpected type 'KGuiItem'
overload 3: argument 4 has unexpected type 'instancemethod'
overload 4: argument 3 has unexpected type 'PlayerList'
This is KDE 4.4 with pyqt4 4.7.0
--
Wolfgang
More information about the PyQt
mailing list