To Subclass NSApplication in QApplication.
-
That depends on the class and method. Some of them (most notable the GUI classes and many QObject derived classes) need a Qt event loop running (which is usually achieved by starting exec() on a QApplication). Others do not depend on this (e.g. QString, the container classes, the XML classes) and can be used directly.