| Paste number 63901: | Qt tutorial 1 |
| Pasted by: | sohail |
| When: | 2 years, 1 month ago |
| Share: | Tweet this! | http://paste.lisp.org/+1DB1 |
| Channel: | #lisp |
| Paste contents: |
(in-package :qt)
(defparameter *app* (make-instance 'qlisp-application))
(defparameter *hello* (make-instance 'qpush-button
:text (make-instance 'qstring
:ch "Hello world!")))
(qwidget-resize *hello* 100 30)
(qwidget-show *hello*)
(qapplication-exec)
(sb-ext:quit)
Annotations for this paste:
| Annotation number 1: | In the future... |
| Pasted by: | sohail |
| When: | 2 years, 1 month ago |
| Share: | Tweet this! | http://paste.lisp.org/+1DB1/1 |
| Paste contents: |
In the future, it is expected that Lisp strings will be automagically converted to qstrings when/where necessary. So the obvious ugliness of (make-instance 'qstring :ch "Foo") will go away.