<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">as I said already on IRC, somehow, on my Mac, grantlee does not fill in the template (no dive data is entered). In addition I get some error messages on the console which do not tell me a lot and also the data types that come with grantlee are also not easy for me to look into with the debugger. Here is what happens in detail. I am single stepping through printer.cpp.</div><div class=""><br class=""></div><div class="">In line 87 <span style="color: rgb(192, 192, 192);" class="">       </span><span style="color: rgb(128, 0, 128);" class="">Grantlee</span>::<span style="color: rgb(128, 0, 128);" class="">Template</span><span style="color: rgb(192, 192, 192);" class=""> </span>t<span style="color: rgb(192, 192, 192);" class=""> </span>=<span style="color: rgb(192, 192, 192);" class=""> </span><span style="color: rgb(128, 0, 0);" class="">m_engine</span>->loadByName(<span style="color: rgb(128, 0, 0);" class="">PrintOptions</span>-><span style="color: rgb(128, 0, 0);" class="">p_template</span>);</div>

<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""><!--EndFragment--></pre><div class="">This produces the error</div><div class=""><br class=""></div><span class="">QObject: Cannot create children for a parent that is in a different thread.<br class="">(Parent is Grantlee::Parser(0x7fff5fbfb8f8), parent's thread is QThread(0x104d2da60), current thread is QThread(0x11d4b9240)<br class="">QObject: Cannot create children for a parent that is in a different thread.<br class="">(Parent is Grantlee::Parser(0x7fff5fbfb8f8), parent's thread is QThread(0x104d2da60), current thread is QThread(0x11d4b9240)<br class="">QObject::setParent: Cannot set parent, new parent is in a different thread<br class=""></span><span class=""><br class=""></span><span class="">I don’t know how threads enter here but maybe this is the progress bar? I had a similar error before when trying to show a modal dialog from a thread that was not the main thread. But this is how far my experience takes me.</span><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Then a bit later, in line 92 </span>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><!--StartFragment--><span style=" color:#c0c0c0;" class="">        </span>htmlContent<span style=" color:#c0c0c0;" class=""> </span>=<span style=" color:#c0c0c0;" class=""> </span>t->render(&c);</pre>
<span class=""><br class=""></span><span class="">I get the error <br class=""></span><span class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype<br class="">Don't know how to handle metatype <br class=""></span><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Where the number of repeats seems to be somehow related to which dives I try to print and how many. Too bad I cannot step into this with the debugger and also c fails to give any useful information beyond containing a d_ptr to some address.</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Then I get a printout but it is just the template without any data filled in.</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Any ideas how I can proceed from here?</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Best</span></div><div class=""><span class="">Robert</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">-- <br class="">.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO<br class="">Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics<br class="">                      Scientific Coordinator<br class="">                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik<br class="">                      Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339<br class="">                      <a href="http://www.atdotde.de" class="">http://www.atdotde.de</a><br class=""><br class="">Enhance your privacy, use cryptography! My PGP keys have fingerprints<br class="">A9D1 A01D 13A5 31FA 6515  BB44 0820 367C 36BC 0C1D    and<br class="">DCED 37B6 251C 7861 270D  5613 95C7 9D32 9A8D 9B8F<br class=""><br class=""><br class=""><br class=""><br class=""></span>
<br class=""></div></div></body></html>