mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-10 04:10:34 -08:00
add new function QVARIANT-FROM-VALUE, needed in QML:QML-SET ("quick" examples)
This commit is contained in:
parent
881939b2d9
commit
b33a987248
10 changed files with 31 additions and 6 deletions
|
|
@ -8,6 +8,7 @@
|
|||
(require :qml-lisp "qml-lisp")
|
||||
|
||||
(defun run ()
|
||||
;; *quick-view* can be either a QQuickView or a QQuickWidget
|
||||
(setf qml:*quick-view* (qnew "QQuickView(QUrl)"
|
||||
(|fromLocalFile.QUrl| "qml/example.qml")))
|
||||
(|setResizeMode| qml:*quick-view* |QQuickView.SizeRootObjectToView|)
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@
|
|||
(find-qml-object object-name)
|
||||
property-name))
|
||||
(x:when-it (|propertyTypeName| property)
|
||||
(qlet ((variant (qnew (format nil "QVariant(~A)" x:it) value)))
|
||||
(qlet ((variant (qvariant-from-value value x:it)))
|
||||
(|write| property variant)))))
|
||||
|
||||
;;; JS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue