Lately I've been working a lot of QtRuby. Linux development with it is quite quick, and and the desert color scheme of gvim makes things easy to read. I've already managed to use both a custom QWidget for 2D display and a QGLWidget using OpenGL together displaying information based upon the same model. Being able to use slots and signals is also helpful for breaking up your GUI into manageable and distinct parts.
There is a good translation of the Qt tutorials for Ruby, and explains many of the subtleties of how to do slots/signals in Ruby, and some other things which had been implemented as macros.
Getting QtRuby to run on Windows is a different story. The gem I tried was broken because of a buffer error in zlib, so I had to find a work around. This installation guide was very helpful and covers everything from installing Ruby to getting Qt, and getting the QtRuby bindings. Make sure you install mingw.exe as part of the Qt installation, and have qtruby4installer.exe pick the correct directory to find QtCore4.dll in (where you just installed Qt). Also, after you install Qt, you need to fire up a new console, or restart Explorer to get the new paths to load to find this .dll.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment