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>

Public Functions


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().


Copyright © 2007 Trolltech Trademarks
Qt 4.3.0beta