December 15, 2011

ThomasJoachim ThomasJoachim
Lab Rat
24 posts

Can I query a plugin for its supported Q_Properties ?

 

Hello
For learning I made a plugin with some properties.
In a test application I’m loading the dll dynamically with QPluginLoader and I can use the properties as expected.

Now I want to see, which properties are supported by my plugin in order to make something like a “generic” property editor.
Are there possibilities?

Thanks in advance

Thomas

1 reply

December 15, 2011

Lukas Geyer Lukas Geyer
Gene Splicer
2074 posts

Every QObject has a QMetaObject [developer.qt.nokia.com], which allows for retrieving information about properties. See also QObject::metaObject(), QMetaObject::propertyCount(), QMetaObject::property() and QMetaProperty.

 
  ‹‹ Qextserialport unter Linux      QCamera und capture/render alternative ››

You must log in to post a reply. Not a member yet? Register here!