On 16.01.2014 11:50, Alexey Vihorev wrote:
> Hi!
> 
> I’ve got a problem trying to connect currentChanged/selectedChanged signals 
> to anything. The code:
I vaguely remember having a similar problem once (it's ages ago so
things might have changed).
After some debugging I found that the object providing the slot was garbage
collected before the connection was made resulting in the crash.


Can you try changing this

>         self.view.selectionModel().currentChanged.connect(self.handler)

To the following:

          selection_model = self.view.selectionModel()
          selection_model.currentChanged.connect(self.handler)

And see if that helps?

Regards,
Andy
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside

Reply via email to