Schaefer Johannes wrote:
> Hi,
>
> no changes when I am swapping the lines.
>
> Now I am using the passive window implementation und it runs in the
> debug modus. This is not the solution of the problem, but it works.
Did you try the QtLogListener thing?
It goes something like this, where I'd recommend a breakpoint on the
QtFatalMsg case:
void OrzApplication::onQTLog(QtMsgType type, const char *msg)
{
namespace ba = boost::algorithm;
LogEventPtr event(new LogEvent());
switch (type) {
case QtDebugMsg: event->m_level = LOG_DEBUG; break;
case QtWarningMsg: event->m_level = LOG_WARN; break;
case QtCriticalMsg: event->m_level = LOG_ERROR; break;
case QtFatalMsg: event->m_level = LOG_FATAL; break;
default: event->m_level = LOG_INFO; break;
}
if (ba::starts_with(msg, "QMetaObject::connectSlotsByName")) {
event->m_level = LOG_ERROR;
} else if (ba::starts_with(msg, "Object::connect")) {
event->m_level = LOG_ERROR;
}
event->m_location = "Qt";
event->m_msg = msg;
LogSystem::the().getRootLogger().log(event);
// or just:
std::cerr << msg << st::endl;
}
void main()
{
qInstallMsgHandler(&OrzApplication::onQTLog);
QApplication a;
osgInit():
...
}
Cheers,
/Marcus
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users