On Jan 16, 5:38 pm, levand <luke.vanderh...@gmail.com> wrote:
> Has anyone here had success in using Clojure with QT Jambi?
>
> I'm currently experimenting with porting my app from Swing to QT, and
> although Jambi might well be the theoretically superior framework, it
> seems like Swing is a lot easier to use with Clojure.
>
> The issue I'm currently running into is that you can't call any
> methods on QT gui objects unless you're in the same thread they were
> created in. But that can't be the Repl thread, because
> QApplication.exec() basically sets up an event loop and takes control
> of whatever thread you start it in.
>
> So, it looks like I can't do any of that cool interactive gui
> development that I fell in love with in Rich's presentations, and have
> continued to love using myself.
>
> Am I missing something? I thought I'd give QT a try, since everyone
> seems to rave about it, but so far, in most ways, Swing seems easier
> to use and more powerful. But maybe I'm just not familiar enough with
> Jambi.
>
> Many thanks,
> -Luke

I have had some success writing a little app[1] in Qt Jambi in
Clojure, for what it's worth.  You can use QCoreApplication/
invokeLater or invokeAndWait to mess with Qt objects from different
threads.

I have managed to segfault the JVM while poking a running Qt Jambi app
from a REPL.  I also had some problems with memory leaks [2] for a
time.  It's not as stable and solid as Swing.  It works though, and Qt
is a nice framework to work with.

[1]: http://github.com/briancarper/bcc-clojure/tree/master
[2]: Most likely this issue: 
http://www.mail-archive.com/qt-jambi-inter...@trolltech.com/msg00592.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to