QDesignerFormWindowManagerInterface Class Reference

[QtDesigner module]

该QDesignerFormWindowManagerInterface类允许你操作的窗口形式在Qt Designer中收集和控制的Qt Designer的表格编辑操作。More…

继承QObject

Methods

  • __init__ (self, QObject parent = None)
  • QAction actionAdjustSize (self)
  • QAction actionBreakLayout (self)
  • QAction actionCopy (self)
  • QAction actionCut (self)
  • QAction actionDelete (self)
  • QAction actionFormLayout (self)
  • QAction actionGridLayout (self)
  • QAction actionHorizontalLayout (self)
  • QAction actionLower (self)
  • QAction actionPaste (self)
  • QAction actionRaise (self)
  • QAction actionRedo (self)
  • QAction actionSelectAll (self)
  • QAction actionSimplifyLayout (self)
  • QAction actionSplitHorizontal (self)
  • QAction actionSplitVertical (self)
  • QAction actionUndo (self)
  • QAction actionVerticalLayout (self)
  • QDesignerFormWindowInterface activeFormWindow (self)
  • addFormWindow (self, QDesignerFormWindowInterface formWindow)
  • QDesignerFormEditorInterface core (self)
  • QDesignerFormWindowInterface createFormWindow (self, QWidget parent = None, Qt.WindowFlags flags = 0)
  • QDesignerFormWindowInterface formWindow (self, int index)
  • int formWindowCount (self)
  • removeFormWindow (self, QDesignerFormWindowInterface formWindow)
  • setActiveFormWindow (self, QDesignerFormWindowInterface formWindow)

Qt Signals

  • void activeFormWindowChanged (QDesignerFormWindowInterface *)
  • void formWindowAdded (QDesignerFormWindowInterface *)
  • void formWindowRemoved (QDesignerFormWindowInterface *)

Detailed Description

该QDesignerFormWindowManagerInterface类允许你操作的窗口形式在Qt Designer中收集和控制的Qt Designer的表格编辑操作。

QDesignerFormWindowManagerInterface不打算直接实例化。Qt Designer使用表单窗口管理器来控制各种形式的窗口在其工作区。你可以检索界面Qt Designer的使用构成了窗口管理器QDesignerFormEditorInterface.formWindowManager()函数。例如:

  1. QDesignerFormWindowManagerInterface *manager = 0;
  2. [QDesignerFormWindowInterface]($docs-qdesignerformwindowinterface.html) *formWindow = 0;
  3. manager = formEditor->formWindowManager();
  4. formWindow = manager->formWindow(0);
  5. manager->setActiveFormWindow(formWindow);

当实现一个自定义的widget插件,一个指向Qt Designer目前的QDesignerFormEditorInterface对象(formEditor在上面的例子)是由提供QDesignerCustomWidgetInterface.initialize( )函数的参数。您必须在子类QDesignerCustomWidgetInterface为你的插件暴露在Qt Designer中。

表格窗口管理器界面提供了createFormWindow( )函数,使您能够创建一个新的窗体窗口,您可以添加到窗体的窗口,该管理器维护的收集,使用addFormWindow()槽。它也提供了formWindowCount( )函数返回当前经理人的控制之下形式的窗口的数量,formWindow()函数返回与给定的索引相关联的形式的窗口,并且activeFormWindow( )函数返回当前选定窗体窗口。该removeFormWindow( )插槽可让您减少表格的窗口管理器必须保持数,以及setActiveFormWindow()槽允许您更改窗体窗口焦点Qt Designer的工作空间。

此外, QDesignerFormWindowManagerInterface包含的函数的集合,使您能够干预和控制Qt Designer的表单编辑操作。所有这些函数返回原来的动作,从而有可能进一步干预后传播的功能。

最后,该接口提供了当表单窗口被加入其中发射三种信号,当当前选择的窗口形式的变化时,或者当一个窗口的形式被除去,分别。所有的信号进行有问题的窗口形式作为其参数。


Method Documentation

  1. QDesignerFormWindowManagerInterface.__init__ (self, QObject parent = None)

parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。

构造一个接口与给定的parent表单窗口管理器。

  1. QAction QDesignerFormWindowManagerInterface.actionAdjustSize (self)

[

允许你进行干预和控制Qt Designer的“调整大小”的行动。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionBreakLayout (self)

[

允许你进行干预和控制Qt Designer的“破布局”动作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionCopy (self)

[

允许你进行干预和控制Qt Designer的“复制”操作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionCut (self)

[

允许你进行干预和控制Qt Designer的“切”的动作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionDelete (self)

[

允许你进行干预和控制Qt Designer的“删除”操作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionFormLayout (self)

[

允许你进行干预和控制Qt Designer的“窗体布局”动作。该函数返回原来的动作。

FormWindowManagerPrivateMap * fwmpm = g_FormWindowManagerPrivateMap ();

此功能被引入Qt的4.4 。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionGridLayout (self)

[

允许你进行干预和控制,为在表单窗口网格布局的要求Qt Designer的工作空间。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionHorizontalLayout (self)

[

允许你进行干预和控制,为在表单窗口水平布局的要求Qt Designer的工作空间。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionLower (self)

[

允许你进行干预和控制降低窗体窗口的作用Qt Designer的工作空间。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionPaste (self)

[

允许你进行干预和控制Qt Designer的“粘贴”操作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionRaise (self)

[

允许你进行干预和控制在一个窗口的形式筹集的作用Qt Designer的工作空间。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionRedo (self)

[

允许你进行干预和控制Qt Designer的“重做”操作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionSelectAll (self)

[

允许你进行干预和控制Qt Designer的“全选”操作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionSimplifyLayout (self)

[

允许你进行干预和控制Qt Designer的“简化布局”动作。该函数返回原来的动作。

此功能被引入Qt的4.4 。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionSplitHorizontal (self)

[

允许你进行干预和控制Qt Designer的“水平分割”的行动。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionSplitVertical (self)

[

允许你进行干预和控制Qt Designer的“垂直拆分”操作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionUndo (self)

[

允许你进行干预和控制Qt Designer的“撤消”操作。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QAction QDesignerFormWindowManagerInterface.actionVerticalLayout (self)

[

允许你进行干预和控制,为在表单窗口的垂直布局的要求Qt Designer的工作空间。该函数返回原来的动作。

]($docs-qaction.html)

See also QAction

  1. QDesignerFormWindowInterface QDesignerFormWindowManagerInterface.activeFormWindow (self)

[

返回当前活动窗体的窗口Qt Designer的工作空间。

]($docs-qdesignerformwindowinterface.html)

See also setActiveFormWindow()和removeFormWindow( ) 。

  1. QDesignerFormWindowManagerInterface.addFormWindow (self, QDesignerFormWindowInterface formWindow)

这种方法也是一个Qt槽与C + +的签名void addFormWindow(QDesignerFormWindowInterface *)

将给定formWindow在窗口的集合,Qt Designer的形式的窗口管理器维护。

See also formWindowAdded( ) 。

  1. QDesignerFormEditorInterface QDesignerFormWindowManagerInterface.core (self)

返回一个指针Qt Designer目前的QDesignerFormEditorInterface对象。

  1. QDesignerFormWindowInterface QDesignerFormWindowManagerInterface.createFormWindow (self, QWidget parent = None, Qt.WindowFlags flags = 0)

[

parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。

创建一个窗体窗口与给定parent和给定的窗口flags

]($docs-qdesignerformwindowinterface.html)

See also addFormWindow( ) 。

  1. QDesignerFormWindowInterface QDesignerFormWindowManagerInterface.formWindow (self, int index)

[

返回窗口的形式在给定的index

]($docs-qdesignerformwindowinterface.html)

See also setActiveFormWindow()和removeFormWindow( ) 。

  1. int QDesignerFormWindowManagerInterface.formWindowCount (self)

返回的维护形式的窗口数量Qt Designer的形成窗口管理器。

  1. QDesignerFormWindowManagerInterface.removeFormWindow (self, QDesignerFormWindowInterface formWindow)

这种方法也是一个Qt槽与C + +的签名void removeFormWindow(QDesignerFormWindowInterface *)

删除给定的formWindow从窗户的集合,Qt Designer的形式的窗口管理器维护。

See also formWindow()和formWindowRemoved( ) 。

  1. QDesignerFormWindowManagerInterface.setActiveFormWindow (self, QDesignerFormWindowInterface formWindow)

这种方法也是一个Qt槽与C + +的签名void setActiveFormWindow(QDesignerFormWindowInterface *)

设置给定formWindow要在当前活动窗体的窗口Qt Designer的工作空间。

See also activeFormWindow()和activeFormWindowChanged( ) 。


Qt Signal Documentation

  1. void activeFormWindowChanged (QDesignerFormWindowInterface *)

这是该信号的默认超载。

这个信号被发射时,在当前激活的形式窗口的内容Qt Designer工作空间的改变。一个指针,指向当前活动formWindow被作为参数传递。

See also activeFormWindow( ) 。

  1. void formWindowAdded (QDesignerFormWindowInterface *)

这是该信号的默认超载。

当一个新的窗体窗口被添加到窗口的集合,这个信号被发射的Qt Designer的形式的窗口管理器维护。一个指向新formWindow被作为参数传递。

See also addFormWindow()和setActiveFormWindow( ) 。

  1. void formWindowRemoved (QDesignerFormWindowInterface *)

这是该信号的默认超载。

当一个表单窗口从窗口的集合中移除这个信号被发射的Qt Designer的形式的窗口管理器维护。一个指针,指向被删除formWindow被作为参数传递。

See also removeFormWindow( ) 。