qt/j interface is rather pimitive at time being.
Depending on whether running QtQuick 1 or 2, the qml syntax is
slightly different. Please see quick1.qml and quick2.qml in qt
demo folder. only text parameter and result are supported. eg.
text: QmlJE.dors("|.JVERSION")
in which dors() take any j sentence, evaluate and return the
text result of it.
There are 5 functions:
Q_INVOKABLE QString verb(QString v,QString y,bool ingoreResult=false);
Q_INVOKABLE int dor(QString s);
Q_INVOKABLE QString dors(QString s);
Q_INVOKABLE QString getvar(QString n);
Q_INVOKABLE void setvar(QString n,QString s);
the int result of dor is a special case, 0=no error, else the J error
coce, eg 3=domain error.
Сб, 18 апр 2015, Raul Miller написал(а):
> Is there any documentation on how to get user input from qtquick into
> J (or data from J into the qtquick environment?)
>
> The Help->Studio->Showcase->samegame demo looks nifty, but I'm at a
> loss as to how I can take advantage of these UI elements from J.
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm