[PySide] QStateMachine destruction causes application to exit suddenly

Julien Brisset brissetj at gmail.com
Mon May 20 19:33:10 CEST 2013


Hi Stephan
thanks for your answer. I tried what you advised, but the problem 
remains present.
I also ran from sources under ubuntu and the problem is unfortunately 
still present.
Any other advice ?
Regards,
Julien

On 17/05/2013 22:26, Stephan Deibel wrote:
> julien brisset wrote:
>> I reported here :
>> https://bugreports.qt-project.org/browse/PYSIDE-148
>> a problem I encountered a few months ago while using the 
>> QStateMachine framework with PySide.
>> I never had any feedback about that problem.
>>
>> Am I doing something wrong ? Is it really a PySide bug ? How long 
>> would it take to solve it ?
>> I could try to solve it but I would need some advices from the PySide 
>> developpers.
>>
>
> Does it work if you call qtapp.processEvents() instead of 
> QtCore.QCoreApplication.processEvents()?
>
> Or instead of the loop just do:
>
> qtapp.exec_()
>
> (and have code that calls qtapp._exit() or 
> QApplication.instance()._exit() to exit the app)
>
> It does look like an object life cycle bug, but I'm not sure.  You may 
> want to try running from sources if you're using the last PySide 
> release, which is unfortunately pretty old.
>
> - Stephan
>




More information about the PySide mailing list