tags:

views:

79

answers:

2

Previously, I am able to use PropertySheet provided by http://www.l2fprod.com/common/index.php

When I pass in an Java Object, a GUI windows will be created automatically, to display the property of the object. User will able to view and edit the properties of the object.

For C++, I know it is difficult to obtain object's properties during runtime. But, I was wondering whether there is an equivalent GUI component in C++? QT component will be preferrable.

Property Sheet Using Java

+1  A: 

You should be able to lift the one out of KSpy.

scotchi
+2  A: 

It looks like the Qt Property Browser framework is what you're looking for. It has built-in string and numeric editors. You may have to write your own editor for other types (which it appears can be easily registered with the framework). Several presentation styles for nested properties are provided: tree, disclosure and group boxed.

Barry Wark
As far as I know, the Property Browser (a) isn't open source and (b) hasn't been updated for Qt 4.
scotchi
Good to know. Thanks.
Barry Wark
It is both LGPL/commercial and it has been updated for Qt4: http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qtpropertybrowser
rpg