vizkit3d
QPropertyBrowserWidget.hpp
Go to the documentation of this file.
1 #ifndef QPROPERTYBROWSERWIDGET_HPP
2 #define QPROPERTYBROWSERWIDGET_HPP
3 
7 
8 #include <QWidget>
9 #include <QHash>
10 
11 namespace vizkit3d {
12 
14 {
15  Q_OBJECT
16 
17 public:
18  QPropertyBrowserWidget(QWidget* parent = 0);
19  void addProperties(QObject* obj,QObject* parent = NULL);
20  void removeProperties(QObject* obj);
21  void addGlobalProperties(QObject* obj, const QStringList &property_list);
22 
23 protected slots:
24  void propertyChangedInGUI(QtProperty *property, const QVariant &val);
25  void propertyChangedInObject(QString property_name);
27  void propObjDestroyed(QObject*);
28 
29 private:
30  QHash<QtProperty*, QObject*> propertyToObject;
31  QHash<QObject*, QHash<QString ,QtProperty*>* > objectToProperties;
32  QHash<QObject*, QtProperty*> objectToGroup;
33  QtVariantPropertyManager *variantManager;
34  QtVariantEditorFactory *factory;
35  QtGroupPropertyManager* groupManager;
36 };
37 
38 }
39 
40 #endif
void addProperties(QObject *obj, QObject *parent=NULL)
Definition: QPropertyBrowserWidget.cpp:61
The QtVariantPropertyManager class provides and manages QVariant based properties.
Definition: qtvariantproperty.h:169
The QtTreePropertyBrowser class provides QTreeWidget based property browser.
Definition: qttreepropertybrowser.h:56
The QtGroupPropertyManager provides and manages group properties.
Definition: qtpropertymanager.h:168
void addGlobalProperties(QObject *obj, const QStringList &property_list)
Definition: QPropertyBrowserWidget.cpp:26
void propertyChangedInObject()
Definition: QPropertyBrowserWidget.cpp:265
void propertyChangedInGUI(QtProperty *property, const QVariant &val)
Definition: QPropertyBrowserWidget.cpp:199
void propObjDestroyed(QObject *)
Definition: QPropertyBrowserWidget.cpp:158
void removeProperties(QObject *obj)
Definition: QPropertyBrowserWidget.cpp:166
Definition: QPropertyBrowserWidget.hpp:13
QPropertyBrowserWidget(QWidget *parent=0)
Definition: QPropertyBrowserWidget.cpp:9
The QtProperty class encapsulates an instance of a property.
Definition: qtpropertybrowser.h:74
The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager ...
Definition: qtvariantproperty.h:279