<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 22, 2016 at 10:48 AM, Willem Ferguson <span dir="ltr"><<a href="mailto:willemferguson@zoology.up.ac.za" target="_blank">willemferguson@zoology.up.ac.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I am forced to ask help. I have now spent about three weeks to solve this problem and I am making no headway whatsoever, probably because my understanding is limited. It is setting up the table to display the uploaded dives. I use a TableView to do this. QML creates it and I can set its attributes. Using the widget code in the present downloadfromdivecomputer.cpp, I pass a model to QML.  But when I specify the model I get a segfault when executing the mobile code on Fedora. I know which C++ instruction throws the segfault but it does not help very much in this case. I just cannot get QML to accept and make use of the model. An important obstacle is the poor error messaging when working with QML.<br>
<br>
I need someone better qualified than myself to look through the code and tell me where I go wrong. It appears this is a bit of a quieter period in the development cycle. Would any one be prepared to look at it at all? Alternatively, is there a different approach I can take to locate the issue of how QML sees the model?<br></blockquote><div><br></div><div>you forgot to send the code. :)</div><div>usually:</div><div><br></div><div>- Mark all methods you wanna call with Q_INVOKABLE</div><div>- export the model to the qml engine </div><div>- access it directly via the name that you used.</div><div> </div><div>send the diff code and I can take a look today</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Kind regards,<br>
willem<br>
_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
</blockquote></div><br></div></div>