So anyone who's interested in that: I've changed the delegate line 22 to "children: surface" and it works now - told ya I was going wrong with the delegate. Solved.
2012/11/2 Tim Bienias <tim.bien...@googlemail.com> > Hi, > > I'm having a bad time with showing a QQuickItem (in particular a > WaylandSurfaceItem from the QtWayland-module) in QML. > There's a Client-class that holds a pointer to the WaylandSurfaceItem. > This Client-class will contain additional information in future. > There's a ClientModel-class derived by QAbstractListModel that holds > Client* in a QList. > I have approved that the Client* gets pushed into the model, but I think > I've been wrong with the delegate in the QML-ListView. > > So the main-question is, how does one simply show a C++ QQuickItem, held > in a C++ model, in QML? > > super-hmi.pro <http://cutebin.fi/show.php?id=1190> > main.cpp <http://cutebin.fi/show.php?id=1189> > client.hpp + client.cpp <http://cutebin.fi/show.php?id=1193> > clientmodel.hpp + clientmodel.cpp <http://cutebin.fi/show.php?id=1194> > compositor.hpp + compositor.cpp <http://cutebin.fi/show.php?id=1192> > main.qml <http://cutebin.fi/show.php?id=1195> > > cheers, > > tim > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest