[Qt-interest] Fwd: setting dynamic properties
ami guru
dosto.walla at gmail.com
Fri Dec 12 14:30:41 CET 2008
Thanks Anthony,
I got that by dynamicPropertyNames() which returns a QList<QByteArray>
Now there is anothor issue.I have 5 property defined in the customer class.
When i try to print all the properties they print 6 properties and one extra
has no name and a blank string inside that
Any hint to track that ?
Regards
Sajjad
---------- Forwarded message ----------
From: Anthony Serdyukov <uksus70 at gmail.com>
Date: Fri, Dec 12, 2008 at 1:35 PM
Subject: Re: [Qt-interest] setting dynamic properties
To: qt-interest at trolltech.com
Since your property DateEstablished is dynamic, you can't get its name
via QMetaObject. Use QObject::dynamicProperties() method, if i'm not
mistaken with method name.
2008/12/12, ami guru <dosto.walla at gmail.com>:
> Hello forum,
>
> I am trying to set properties on runtime and then print the contents of
the
> properties.
> But it is not working .
>
--
Regards,
Anthony
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081212/605f0ad3/attachment.html
More information about the Qt-interest-old
mailing list