[Kde-bindings] Re: Custom properties on QObjects defined in qtruby

Arno Rehn arno at arnorehn.de
Thu Feb 10 20:19:28 UTC 2011


On Thursday 10 February 2011 20:44:25 Sven Moritz Hallberg wrote:
> Hi again,
> 
> after playing with QtRuby and QML, I'm wondering whether there are any
> plans to support adding properties to QObject-derived classes on the Ruby
> side? Analogously to Q_PROPERTY like so:
> 
>     class Foo < Qt::Object
>       slots ...
>       signals ...
>       properties ...
> 
>       ...
>     end
> 
> AFAICS this would allow property binding on the QML side because of notify
> signals, right?
> 
> I've looked around the qtruby source and found relevant code in
> qtruby/src/lib/Qt/qtruby4.rb: Base::slots, Base::signals, MetaInfo,
> Internal::makeMetaData, ...
> Some docs on the qt_meta_data and qt_meta_stringdata structures here:
> 
>     http://dev.libqxt.org/libqxt/wiki/Meta_Object_Format
> 
> also the relevant functions in qt/src/tools/moc/generator.cpp.
> 
> Further info/pointers would be appreciated! :)
There are no plans so far, but we want to get QtRuby development up to speed 
again. Patches welcome. It's not hard to do, Qyoto for example already has 
support for properties.

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list