[Qt-interest] Multiple Objects all having the Same name
Ross Bencina
rossb-lists at audiomulch.com
Wed Feb 15 05:56:49 CET 2012
On 15/02/2012 7:50 AM, Michael Jackson wrote:
> Actually I am using the object name as the name of a property in another class in order to use the "setProperty()" methods to set that particular property.
In that case, can't you use setProperty for both?
On your "all the same name" objects:
o->setProperty("xxxPropNamexxx", "fooBar" )
then for your target:
t->setProperty( o->property("xxxPropNamexxx"), someValue ); // sets the
fooBar property to some value
Ross.
More information about the Qt-interest-old
mailing list