Re: [EQL5] Making a model available for a ListView in QML

PR <[email protected]> Wed, 16 Dec 2020 12:23:53 +0100
Newsgroups gmane.lisp.ecl.general
Message-ID <CAOJeB-AUQ+Hf2UsF6x4M+WKq+rE+oi9uCsWXYPmSgz+2bJZQdg@mail.gmail.com>
On 12/16/20, Erik Winkels <aerique-qWit8jRvyhVmR6Xm/[email protected]> wrote:
> However, I'm not sure what to do with the `qml:*quick-view*`

In the C++ template you cited there is this call:

  eql_fun ("app/qml:ini-lib", Q_ARG (QQuickView*, view.data ()),
           Q_ARG (const char*, mainQml.toLocalFile ().toLatin1 ().constData ()),
           Q_ARG (const char*, resRoot.toLocalFile ().toLatin1
().constData ()));

I guess you're using the above function, so you just need to store the
first argument (the QQuickView*) in a Lisp parameter, and use it
instead of qml:*quickview*.

Paul