Class used to display and modify a widget's properties More...
#include <inspect.h>
The WidgetInspector is a smart class that can be used to display and modify the properties of any type of widget. It consists of a QTabDialog with tab pages for all of the standard widget properties and one or more extra tab pages for properties which are specific to a certain type of widget. As soon as the target of the WidgetInspector is set, its type is retrieved using QObject::className(). The target widget is also checked for it's inheritance structure. For example, if the target is a QGroupBox, which inherits QFrame, the WidgetInspector will have tab pages for both QFrame, containing properties like FrameStyle and QGroupBox, containing amoung others the title of the QGroupBox.
Warning: The WidgetInspector is a one-shot class at the moment. You can only set the target once. This is due to the simple fact that its base class QTabDialog does not provide a removeTab() member function. The best work-around for this problem is to create a new WidgetInspector for each object you wish to inspect and delete it when you are done with it.
Create a new (empty) WidgetInspector.
Set the target of the WidgetInspector. First, the whole QTabDialog will be cleared. Then, depending on the type of target, one or more pages will be added. Each page will the be called to set its target.
Returns the current target of the WidgetInspector.
[private]
The target of the widget inspector
[private]
A list of pages created to view the content of the target widget