Paste number 63901: Qt tutorial 1

Index of paste annotations: 1

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:
Raw Source | XML | Display As
(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:
Raw Source | Display As
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.

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.