This is correct! I was nevertheless looking for a more generic way that would also allow me to work if a QCoreApplication would be instantiated explicitly.
This is correct! I was nevertheless looking for a more generic way that would also allow me to work if a QCoreApplication would be instantiated explicitly.
Then qobject_cast<QApplication*>(QCoreApplication::inst ance()) works.
doberkofler (21st September 2010)
Bookmarks