Ilkka Laukkanen wrote:
> I'd favor forms that allow you to keep a reference to the app object
> with the minimum fuss and magic, because for some apps you might need
> it... the forms in your first e-mail, to be exact.

On the other hand, due to the dynamic nature of Python's type system, 
QApplication.instance() will return the current QApplication. This is not true 
in C++ as ::instance() only returns a QCoreApplication*, although I'm not sure 
what the rationale for not providing QApplication::instance() is.

What does the PySide team think about using QApplication.instance() in this 
way? Is it discouraged?


Farsmo
                                          
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to