[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: Re: [Kde-bindings] QtRuby section in my book
From: Caleb Tennis <caleb () aei-tech ! com>
Date: 2006-04-05 19:58:58
Message-ID: 200604051558.58811.caleb () aei-tech ! com
[Download RAW message or body]
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
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic