Class overview   Alphabetical list   Annotated list   Header Files   Member List  

WidgetInspector Class Reference


Class used to display and modify a widget's properties More...

#include <inspect.h>

List of all member functions.

Public Members

Private Members


Detailed Description

Class used to display and modify a widget's properties

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.


Member Function Documentation

WidgetInspector::WidgetInspector(QWidget *parent, const char *name)

Create a new (empty) WidgetInspector.

void WidgetInspector::setTarget(QWidget *target)

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.

WidgetInspector::target()

Returns the current target of the WidgetInspector.


Member Variable Documentation

QWidget* WidgetInspector::_target [private]

The target of the widget inspector

QList <PropPage> WidgetInspector::_pageList [private]

A list of pages created to view the content of the target widget


This file was generated from the following files:
Generated at 14:38, 1998/04/17 for Ebuilder by doxygen  written by Dimitri van Heesch, © 1997-1998