One possible approach is with Qt Jambi. They have a nice GUI builder
called "designer" that generates an xml file that can be loaded at
runtime. He's a rough example:
http://paste.lisp.org/display/69450
--Chouser
Stuart
For the book would people rather see Swing or Qt Jambi examples?
> For the book would people rather see Swing or Qt Jambi examples?
I know people have built UIs with Netbean's Matisse, which is supposedto be very good, and wired them up with Clojure. IMO that's a
promising approach.
Hi,
The same hello world did not work for me.
The error msgs are:
(defn hello-world []
(qt4
(let [app (QCoreApplication/instance)
button (new QPushButton "Go Clojure Go")]
(.. button clicked (connect app "quit()"))
(doto button
(resize 250 100)
(setFont (new QFont "Deja Vu Sans" 18 (.. QFont$Weight Bold
value)))
(setWindowTitle "Go Clojure Go")
(show)))))
java.lang.Exception: Unable to resolve symbol: resize in this context
(NO_SOURCE_FILE:44)
Hi,
Depending on which version of Clojure you are using you may find that you need to change:
(doto button
(resize 250 100))
to:
(doto button