Created
March 5, 2014 01:49
-
-
Save cheryllium/9359706 to your computer and use it in GitHub Desktop.
Source for CommonQt Tutorial #1: Hello World
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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