[Kde-bindings] Custom properties on QObjects defined in qtruby
Sven Moritz Hallberg
hallberg at pre-sense.de
Thu Feb 10 19:44:25 UTC 2011
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! :)
Thanks in advance...
--
Sven Moritz Hallberg hallberg at pre-sense.de
Tel. +49 - 40 / 244 24 07-28
Fax +49 - 40 / 244 24 07-24
PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH
USt-IdNr.: DE263765024
Geschäftsführer/Managing Directors AG Hamburg, HRB 107844
Till Dörges Jürgen Sander Axel Theilmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20110210/ee1e11b0/attachment.sig>
More information about the Kde-bindings
mailing list