[Kde-bindings] QtRuby section in my book
Caleb Tennis
caleb at aei-tech.com
Wed Apr 5 19:58:58 UTC 2006
On Wednesday 05 April 2006 15:47, Jason D. Clinton wrote:
> Hello list;
>
> I've been lurking for quite some time but I finally have something to
> say. I have a section in my upcoming book on using QtRuby for RAD. The
> book is a 'quick reference/pocket reference' style of book called Ruby
> Phrasebook (it's up on Amazon.com). Anyway, it covers Qt4 since that's
> the first release that's GPL for all platforms. Below I have a "Hello
> World" example that I wanted to run by you guys: see any major problems
> with my approach WRT Qt4? There's no documentation out there, yet ...
Excellent.
> @vgroup = Qt::VBoxLayout.new
> @button = Qt::PushButton.new "Hello World!"
> @edit = Qt::LineEdit.new "Hello?"
I think making sure you specify the parent is probably more Qtish:
@button = Qt::PushButton.new("Hello World!", self)
The rest looks good to me!
Caleb
More information about the Kde-bindings
mailing list