Hugo Parente Lima wrote: > > 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? > > In C++ QCoreApplication::instance returns a QCoreApplication pointer and > QApplication::instance returns a QApplication pointer.
No, unless it was fixed recently: it's not in http://doc.qt.nokia.com/4.7/qapplication.html and QApplication::instance()->styleSheet() fails. Maybe this is just an oversight and not a deliberate decision? Cheers, Farsmo _______________________________________________ PySide mailing list PySide@lists.openbossa.org http://lists.openbossa.org/listinfo/pyside