[PyQt] Problem with class inheriting QDialog

dizou di_zou at yahoo.com
Mon Nov 23 19:01:47 GMT 2009



Hans-Peter Jansen-2 wrote:
> 
> Your best bet is using the selection model 
> in your signal handler to figure out, which items where selected
> 
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.

-- 
View this message in context: http://old.nabble.com/Problem-with-class-inheriting-QDialog-tp26421493p26483965.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list