Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QDesignerFormEditorInterface Class

TheQDesignerFormEditorInterface class allows you to access Qt Designer's various components.More...

Header:#include <QDesignerFormEditorInterface>
Inherits:QObject

Public Functions

QDesignerFormEditorInterface(QObject * parent = 0)
virtual~QDesignerFormEditorInterface()
QDesignerActionEditorInterface *actionEditor() const
QExtensionManager *extensionManager() const
QDesignerFormWindowManagerInterface *formWindowManager() const
QDesignerObjectInspectorInterface *objectInspector() const
QDesignerPropertyEditorInterface *propertyEditor() const
voidsetActionEditor(QDesignerActionEditorInterface * actionEditor)
voidsetObjectInspector(QDesignerObjectInspectorInterface * objectInspector)
voidsetPropertyEditor(QDesignerPropertyEditorInterface * propertyEditor)
voidsetWidgetBox(QDesignerWidgetBoxInterface * widgetBox)
QWidget *topLevel() const
QDesignerWidgetBoxInterface *widgetBox() const
  • 29 public functions inherited fromQObject

Additional Inherited Members

  • 1 property inherited fromQObject
  • 1 public slot inherited fromQObject
  • 1 signal inherited fromQObject
  • 7 static public members inherited fromQObject
  • 8 protected functions inherited fromQObject

Detailed Description

TheQDesignerFormEditorInterface class allows you to access Qt Designer's various components.

Qt Designer's currentQDesignerFormEditorInterface object holds information about allQt Designer's components: The action editor, the object inspector, the property editor, the widget box, and the extension and form window managers.QDesignerFormEditorInterface contains a collection of functions that provides interfaces to all these components. They are typically used to query (and manipulate) the respective component. For example:

QDesignerObjectInspectorInterface*objectInspector=0;        objectInspector= formEditor->objectInspector();QDesignerFormWindowManagerInterface*manager=0;        manager= formEditor->formWindowManager();        objectInspector->setFormWindow(manager->formWindow(0));

QDesignerFormEditorInterface is not intended to be instantiated directly. A pointer toQt Designer's currentQDesignerFormEditorInterface object (formEditor in the example above) is provided by theQDesignerCustomWidgetInterface::initialize() function's parameter. When implementing a custom widget plugin, you must subclass theQDesignerCustomWidgetInterface to expose your plugin toQt Designer.

QDesignerFormEditorInterface also provides functions that can set the action editor, property editor, object inspector and widget box. These are only useful if you want to provide your own custom components.

If designer is embedded in another program, one could to provide its own settings manager. The manager is used by the components ofQt Designer to store/retrieve persistent configuration settings. The default manager usesQSettings as the backend.

Finally,QDesignerFormEditorInterface provides thetopLevel() function that returnsQt Designer's top-level widget.

See alsoQDesignerCustomWidgetInterface.

Member Function Documentation

QDesignerFormEditorInterface::QDesignerFormEditorInterface(QObject * parent = 0)

Constructs aQDesignerFormEditorInterface object with the givenparent.

[virtual]QDesignerFormEditorInterface::~QDesignerFormEditorInterface()

Destroys theQDesignerFormEditorInterface object.

QDesignerActionEditorInterface * QDesignerFormEditorInterface::actionEditor() const

Returns an interface toQt Designer's action editor.

See alsosetActionEditor().

QExtensionManager * QDesignerFormEditorInterface::extensionManager() const

Returns an interface toQt Designer's extension manager.

QDesignerFormWindowManagerInterface * QDesignerFormEditorInterface::formWindowManager() const

Returns an interface toQt Designer's form window manager.

QDesignerObjectInspectorInterface * QDesignerFormEditorInterface::objectInspector() const

Returns an interface toQt Designer's object inspector.

See alsosetObjectInspector().

QDesignerPropertyEditorInterface * QDesignerFormEditorInterface::propertyEditor() const

Returns an interface toQt Designer's property editor.

See alsosetPropertyEditor().

void QDesignerFormEditorInterface::setActionEditor(QDesignerActionEditorInterface * actionEditor)

SetsQt Designer's action editor to be the specifiedactionEditor.

See alsoactionEditor().

void QDesignerFormEditorInterface::setObjectInspector(QDesignerObjectInspectorInterface * objectInspector)

SetsQt Designer's object inspector to be the specifiedobjectInspector.

See alsoobjectInspector().

void QDesignerFormEditorInterface::setPropertyEditor(QDesignerPropertyEditorInterface * propertyEditor)

SetsQt Designer's property editor to be the specifiedpropertyEditor.

See alsopropertyEditor().

void QDesignerFormEditorInterface::setWidgetBox(QDesignerWidgetBoxInterface * widgetBox)

SetsQt Designer's widget box to be the specifiedwidgetBox.

See alsowidgetBox().

QWidget * QDesignerFormEditorInterface::topLevel() const

ReturnsQt Designer's top-level widget.

QDesignerWidgetBoxInterface * QDesignerFormEditorInterface::widgetBox() const

Returns an interface toQt Designer's widget box.

See alsosetWidgetBox().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp