Skip to content

Instantly share code, notes, and snippets.

@cheryllium
Created March 5, 2014 01:49
Show Gist options
  • Save cheryllium/9359706 to your computer and use it in GitHub Desktop.
Save cheryllium/9359706 to your computer and use it in GitHub Desktop.
Source for CommonQt Tutorial #1: Hello World
(ql:quickload :qt)
(in-package :qt)
(named-readtables:in-readtable :qt)
(defclass hello-world-app () ()
(:metaclass qt-class)
(:qt-superclass "QWidget"))
(defmethod initialize-instance :after ((instance hello-world-app) &key)
(new instance)
(#_setGeometry instance 200 200 300 300)
(#_setWindowTitle instance "Hello World!"))
(make-qapplication)
(with-main-window (window (make-instance 'hello-world-app)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment