// -------------------------------------------------------------------------- ctkErrorLogQtMessageHandler::ctkErrorLogQtMessageHandler() : Superclass() { this->SavedQtMessageHandler = 0; QCoreApplication * coreApp = QCoreApplication::instance(); // Keep track of all instantiated ctkErrorLogModel QList<QVariant> handlers = coreApp->property("ctkErrorLogQtMessageHandlers").toList(); handlers << QVariant::fromValue(this); //handlers << QVariant::fromValue(QPointer<ctkErrorLogQtMessageHandler>(this)); coreApp->setProperty("ctkErrorLogQtMessageHandlers", handlers); }