On Fri, Apr 22, 2016 at 10:48 AM, Willem Ferguson < [email protected]> wrote:
> > 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. > > 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? > you forgot to send the code. :) usually: - Mark all methods you wanna call with Q_INVOKABLE - export the model to the qml engine - access it directly via the name that you used. send the diff code and I can take a look today > Kind regards, > willem > _______________________________________________ > subsurface mailing list > [email protected] > http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface >
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
