<div dir="ltr">Hi,<div><br></div><div>I need some help using ctkErrorLogWidget, I just want to create a function to add and remove entries from this widget, but it's being really hard. This is what I've got:<br><div>
<br></div><div><b>ctkErrorLogWidget*  logWindow = new ctkErrorLogWidget();<br></b></div></div><div><b>ctkErrorLogModel model;</b><br></div><div><br></div><div><font color="#b6d7a8">// here I've created some test entries </font></div>
<div><br></div><div><div><b>model.addEntry( QDateTime(), QString("threadid"), level, QString("origin"), QString("text"));</b></div><div><b>model.addEntry( QDateTime(), QString("threadida"), level, QString("origina"), QString("texta"));</b></div>
<div><b>model.addEntry( QDateTime(), QString("threadidb"), level, QString("originb"), QString("textb"));</b></div><div><b>model.addEntry( QDateTime(), QString("threadidc"), level, QString("originc"), QString("textc"));</b></div>
</div><div><b><br></b></div><div><b><font color="#b6d7a8">// here I set model as errorlogmodel of my logWindow</font></b></div><div><b>logWindow->setErrorLogModel( &model );</b><br></div><div><b><br></b></div><div>
<b>QObject::connect(logAction,SIGNAL(triggered()),logWindow,SLOT(show()));<br></b></div><div><b><br></b></div><div>so after signal "triggered" is launched, logwindow is showed in the screen but I don't see any entry. I thought that I just need to add a ctkErrorLogModel in my ctkErrorLogWidget to have a way to add entries on this widget, but it doesn't works, I hope someone can helps me.</div>
<div><br></div><div>Thanks for all,</div><div>Javier</div><div><br></div></div>