[Qt-interest] QT Property system ?

Paul Miller paul at fxtech.com
Tue Aug 25 19:43:54 CEST 2009


Patric wrote:
> Yes, ok, the question rather was "when to use them instead of simple 
> member".
> As I understand, these are just like class member, but we can access them 
> even through a pointer to base class.
> And another advantage is that we can add properties at runtime.
> 
> Is that correct ? What other advantages are there ?

You can do introspection.
You can access properties in scripting with QtScript.
You can access properties from Javascript inside a QWebView if you've 
attached your objects to the DOM.
Flowers spring forth and everything spells nice. You'll have an 
excellent day and smile uncontrollably. People will think you are insane 
and dangerous. But you won't care.
The end.

-- 
Paul Miller | paul at fxtech.com | www.fxtech.com | Got Tivo?




More information about the Qt-interest-old mailing list