EQL5/examples/0-Tutorial/3.lisp

14 lines
423 B
Common Lisp

;;; Ported Qt Widgets Tutorial - Using Layouts
(in-package :eql-user)
(let ((window (qnew "QWidget"
"windowTitle" "Window layout"))
(label (qnew "QLabel"
"text" "Name:"))
(line-edit (qnew "QLineEdit"))
(layout (qnew "QHBoxLayout")))
(dolist (w (list label line-edit))
(|addWidget| layout w))
(|setLayout| window layout)
(|show| window))