Menu

#13 getprop will ignore dynamic properties

Accepted
nobody
None
Medium
Defect
2010-08-15
2010-08-15
Anonymous
No

Originally created by: eltro...@gmail.com
Originally owned by: eltro...@gmail.com

when using setprop, any non existing prop name will be
assumed by Qt to be a user named property, that is what
should have been happening, but all the set_prop_type
had return 0 on a non exising property.

currently set/getprop is using the metaobject property
to limit to known properties.

fixed, next version setprop's will have a debug message
to console when a non existing property name is set
as a debugging help in case of a typo
and in addition to stepping through the meta properties
getprop will check for dynamic properties,

workaround right now have just implemented a get_qt_prop
which calls w->property(prop) bypassing metaobjects

Discussion


Log in to post a comment.