mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-15 14:51:14 -08:00
add new example 'qsqlite': use SQL from Lisp, load QML images from DB
This commit is contained in:
parent
a9d93035b6
commit
121170fcbd
17 changed files with 577 additions and 0 deletions
19
examples/qsqlite/lisp/qt.lisp
Normal file
19
examples/qsqlite/lisp/qt.lisp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
(defpackage :qt
|
||||
(:use :cl :qml)
|
||||
(:export
|
||||
#:*cpp*
|
||||
#:data-path
|
||||
#:ini
|
||||
#:ini-db
|
||||
#:sql-query))
|
||||
|
||||
(in-package :qt)
|
||||
|
||||
(defvar *cpp* nil)
|
||||
|
||||
(defun ini ()
|
||||
(setf *cpp*
|
||||
#+qt-plugin (qload-c++ "cpp/qt")
|
||||
#-qt-plugin (qfind-child nil "QT"))
|
||||
(let ((*package* (find-package :qt)))
|
||||
(define-qt-wrappers *cpp*)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue