[Qt-interest] Runtime-dynamic properties in QPropertyEditor
Lars Bilke
lars.bilke at ufz.de
Tue Jun 2 15:38:26 CEST 2009
Hello,
I am using the QPropertyEditor from Qt-Apps.org.
is it possible to create a class with exposed Properties where the
amount of properties is runtime-dynamic? So for example you have a class
which represents a vector of floats with an arbitrary length which is
not known at compile time. So you have a
vector<float> myFloats;
as a class member. How to expose this as a property with the Q_PROPERTY
macro. So at the end I like to have the following view in the property
editor widget:
- MyClass
- value of myFloats[0]
- value of myFloats[1]
- value of myFloats[2]
...
...
Thanks in advance!
--
Mit freundlichen Grüßen
Lars Bilke
Visualisierungszentrum / Umweltinformatik
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Permoserstraße 15, 04318 Leipzig
Telefon: +49 (0)341 235-1881
Email: lars.bilke at ufz.de
http://www.ufz.de/index.php?en=14171
More information about the Qt-interest-old
mailing list