mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-08 03:20:30 -08:00
review "qml-lisp"
This commit is contained in:
parent
03c7a5ded5
commit
140e793040
6 changed files with 77 additions and 29 deletions
|
|
@ -3,16 +3,14 @@
|
|||
#-qt-wrapper-functions ; see README-OPTIONAL.txt
|
||||
(load (in-home "src/lisp/all-wrappers"))
|
||||
|
||||
(require :qml-lisp "qml-lisp")
|
||||
|
||||
(qrequire :quick)
|
||||
|
||||
(defun example-url (name)
|
||||
(|fromLocalFile.QUrl| (in-home (x:cc "examples/M-modules/quick/qml-lisp/qml/" name))))
|
||||
(require :qml-lisp "qml-lisp")
|
||||
|
||||
;;; QQuickView
|
||||
|
||||
(defvar *quick-view* (qnew "QQuickView(QUrl)" (example-url "example.qml")))
|
||||
(defvar *quick-view* (qnew "QQuickView(QUrl)"
|
||||
(|fromLocalFile.QUrl| "qml/example.qml")))
|
||||
|
||||
(defun run ()
|
||||
(|setResizeMode| *quick-view* |QQuickView.SizeRootObjectToView|)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue