Hi , I would like begin writing DTrace probes for Qt 4.2.x on Nevada.
Can I have a wiki page somewhere to document my findings and track my progress? I would like to begin with these ( basic, low-lever but most important) classes QObject : http://doc.trolltech.com/4.2/qobject.html QWidget: http://doc.trolltech.com/4.2/qwidget.html QMetaObject : http://doc.trolltech.com/4.2/qmetaobject.html I have written a Qt MetaObject System Demo for this purpose: Code: http://manishchaks.googlepages.com/MOSDemo.zip You can enter any QtPropery in the upper line edit. You can enter the value that property can take in the lower line edit., Click on the command button... and you'll see the widget setting that property, at run time. Example: Type "windowOpacity" without the quotes in the first lineEdit and "0.75" in the second. The widget should set it's opacity to 75%. At run-time!! You can enter any property listed in QWidget, as long as the property takes ONE input. As a starting point, I want to do dynamic tracing of this application. Though this app is relatively small, it demonstrates the power of Qt's meta object system and powerful object introspection capabilities. A small example: The class myWidget is subclassed from QWidget. You can subclass myWidget from any other Qt Widget ( say QTextEdit ) and be able to dynamically probe the properties of _that_ widget. Additional resources: DTracing C++: http://developers.sun.com/solaris/articles/dtrace_cc.html -- Manish Chakravarty http://manish-chaks.livejournal.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/kde-discuss/attachments/20080209/55735dc3/attachment.html>
