mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-06 02:30:31 -08:00
19 lines
428 B
Common Lisp
19 lines
428 B
Common Lisp
(si::trap-fpe t nil)
|
|
|
|
;;; QQuickView loading Lisp enabled QML
|
|
|
|
(qrequire :quick)
|
|
|
|
(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)
|