<div dir="ltr">Hi Javier,<div><br></div><div>What is the value of level ? </div><div>If level is ctkErrorLogLevel::None, then they won't be visible.</div><div>Also, make sure that all the entries are visible (ctkErrorLogWidget::setAllEntriesVisible()).</div>

<div><br></div><div>Hth,</div><div>Julien.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 29, 2014 at 3:06 AM, Javier Mazaira <span dir="ltr"><<a href="mailto:javier.mazaira@alma3d.com" target="_blank">javier.mazaira@alma3d.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
<br>_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
<br></blockquote></div><br></div>