[Kde-bindings] small qtruby example
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Jul 31 17:45:48 UTC 2003
On Thursday 31 July 2003 16:57, Alexander Kellett wrote:
> heya all,
>
> okay. first small test.
>
> being able to do this
> in ruby is just soo
> much faster development
> wise than c++ has ever
> been for me.
>
> some really tiny chunks
> of documentation about
> writing using qtruby would
> be nice so i'll try to
> jot some notes down
> starting on monday.
> just a few minor things
> about the syntax that
> get you baffled at
> first, for example
> the Qt.RichText thing
> kind of baffled me :)
> (as opposed to Qt::RichText)
It really needs a 'constant_missing' method that would allow you to trap
references to constants like Qt::RichText, but I couldn't find any way of
doing it.
> also. you can get quite
> strange bugs when you
> subclass a Qt object
> as method_missing is
> called for any locals
> you forgot to declare,
> makes for really wierd
> error messages for
> very simple errors :)
Yes, I don't know if there's much I can do about that to improve the error
messages.
> source is pretty unreadable
> at the moment as i really
> did it in a dash effort
> but, still, for such a
> short amount of code,
> it does a *lot*, so:
I didn't have this require - is that a ruby 1.8 thing?
require 'rexml/document'
I fixed the crash on hitting the cancel button in the save dialog - it wasn't
testing for QString::null.
> thanks richard/ashley/germain/anyone else who worked on it + related stuff
> :)
>
> mvg,
> Alex
More information about the Kde-bindings
mailing list