I wrote a Qt-widget based on this topic.
Render works fine.
Now I want to take the irrlicht - log through a QTextEdit - object.
I know how to display the log on messageBox through OnEvent in EventReceiver.
Code: Select all
bool EventReceiver::OnEvent(const irr::SEvent &event)
{
switch(event.EventType)
{
...
case EET_LOG_TEXT_EVENT:
{
const c8 *cs = event.LogEvent.Text;
wchar_t *ws = new wchar_t[strlen(cs) + 1];
int len = mbstowcs(ws,cs,strlen(cs));
ws[len] = 0;
Env->addMessageBox(L"Log", ws);
}
...
}
}
break;
How to listen EET_LOG_TEXT_EVENT event in own Qt - widget?
Best regard
Digan