[PyQt] Problem with class inheriting QDialog
dizou
di_zou at yahoo.com
Mon Nov 23 19:53:21 GMT 2009
nickgaens wrote:
>
>
>
>
>
>
>
> dizou schreef:
>
> What does that mean?
>
> One thing I thought I could do is have my TreeWidget have a
> GetSelectedItem
> function. Then in my Main Window, when I click the button, it calls a
> function that will call the GetSelectedItem function, then emit a signal
> with the return value as a parameter. Is that possible?
>
> With the new way of connecting signals and slots, would I then have
> something like this:
>
> self.editTreeItemButton.clicked.connect(self.EditTreeItemButtonClicked())
>
> Thanks.
>
>
>
> Almost :-)
> self.editTreeItemButton.clicked.connect(self.EditTreeItemButtonClicked)
>
>
> Nick
>
>
>
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
I just realized I'm using PyQt 4.3.3, so nevermind about the new signal
stuff. But I am still wondering how I can pass the QTreeWidgetItem as a
parameter.
--
View this message in context: http://old.nabble.com/Problem-with-class-inheriting-QDialog-tp26421493p26484714.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt
mailing list