mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-08 03:20:30 -08:00
18 lines
439 B
Common Lisp
18 lines
439 B
Common Lisp
;;; QQuickView loading Lisp enabled QML
|
|
|
|
(qrequire :quick)
|
|
|
|
(require :qml-lisp "qml-lisp")
|
|
(require :properties "properties")
|
|
|
|
(use-package :qml)
|
|
|
|
(defun run ()
|
|
;; *quick-view* can be either a QQuickView or a QQuickWidget
|
|
(setf qml:*quick-view* (qnew "QQuickView"))
|
|
(x:do-with qml:*quick-view*
|
|
(|setSource| (|fromLocalFile.QUrl| "qml/example.qml"))
|
|
(|setResizeMode| |QQuickView.SizeRootObjectToView|)
|
|
(|show|)))
|
|
|
|
(run)
|