|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QDesignerScriptExtension Class Reference
[QtDesigner module]

The QDesignerScriptExtension is queried for a script to be associated with the widget while saving the ui-file. This script is then run after creating the widget by uic or the form builder classes. As opposed to the codeTemplate() method of QDesignerCustomWidgetInterface, this allows for applying an internal state created by a task menu extension implementation. More...

     #include <QDesignerScriptExtension>

- List of all members, including inherited members

### Public Functions

- virtual ~QDesignerScriptExtension ()
- virtual QVariantMap data () const = 0
- virtual QString script () const = 0
- virtual void setData ( const QVariantMap & ) = 0

## Detailed Description

The QDesignerScriptExtension is queried for a script to be associated with the widget while saving the ui-file. This script is then run after creating the widget by uic or the form builder classes. As opposed to the codeTemplate() method of QDesignerCustomWidgetInterface, this allows for applying an internal state created by a task menu extension implementation.

## Member Function Documentation

### QDesignerScriptExtension::~QDesignerScriptExtension () `[virtual]`

Destroys the extension.

### QVariantMap QDesignerScriptExtension::data () const `[pure virtual]`

See also setData().

### QString QDesignerScriptExtension::script () const `[pure virtual]`

### void QDesignerScriptExtension::setData ( const QVariantMap & ) `[pure virtual]`

Applies the saved internal state to the widget.

See also data().