QDesignerActionEditorInterface Class Reference

[QtDesigner module]

该QDesignerActionEditorInterface类允许您更改的Qt Designer的动作编辑器的焦点。More…

继承QWidget

Methods

  • __init__ (self, QWidget parent, Qt.WindowFlags flags = 0)
  • QDesignerFormEditorInterface core (self)
  • manageAction (self, QAction action)
  • setFormWindow (self, QDesignerFormWindowInterface formWindow)
  • unmanageAction (self, QAction action)

Detailed Description

该QDesignerActionEditorInterface类允许您更改的Qt Designer的动作编辑器的焦点。

该QDesignerActionEditorInterface类不适合直接实例化。你可以检索界面Qt Designer使用的动作编辑器QDesignerFormEditorInterface.actionEditor()函数。

您可以使用控制,也可在动作编辑器的窗口,它的行动manageAction()和unmanageAction()函数。是受管理的动作Qt Designer在动作编辑器可用,而一个非讬管的操作将被忽略。

QDesignerActionEditorInterface还提供了core( )函数,你可以用它来检索指向Qt Designer目前的QDesignerFormEditorInterface对象,并且setFormWindow( )函数,使您可以更改当前选定窗体窗口。


Method Documentation

  1. QDesignerActionEditorInterface.__init__ (self, QWidget parent, Qt.WindowFlags flags = 0)

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

构造一个动作编辑器界面与给定parent和在指定的窗口flags

  1. QDesignerFormEditorInterface QDesignerActionEditorInterface.core (self)

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

  1. QDesignerActionEditorInterface.manageAction (self, QAction action)

这种方法是抽象的,应在任何子类中重新实现。

指示Qt Designer管理规定action。是受管理的动作Qt Designer可在动作编辑器。

See also unmanageAction( ) 。

  1. QDesignerActionEditorInterface.setFormWindow (self, QDesignerFormWindowInterface formWindow)

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

这种方法是抽象的,应在任何子类中重新实现。

设置当前选定的表格窗口formWindow

  1. QDesignerActionEditorInterface.unmanageAction (self, QAction action)

这种方法是抽象的,应在任何子类中重新实现。

指示Qt Designer忽略指定的action。非讬管的动作是不是在动作编辑器。

See also manageAction( ) 。