QDesignerActionEditorInterface Class

The QDesignerActionEditorInterface class allows you to change the focus of Qt Designer's action editor. 更多...

头: #include <QDesignerActionEditorInterface>
qmake: QT += designer
继承: QWidget

公共函数

QDesignerActionEditorInterface (QWidget * parent , Qt::WindowFlags flags = Qt::WindowFlags())
virtual ~QDesignerActionEditorInterface ()
virtual QDesignerFormEditorInterface * core () const
virtual void manageAction (QAction * action ) = 0
virtual void unmanageAction (QAction * action ) = 0

公共槽

virtual void setFormWindow (QDesignerFormWindowInterface * formWindow ) = 0

额外继承成员

详细描述

The QDesignerActionEditorInterface class allows you to change the focus of Qt Designer's action editor.

The QDesignerActionEditorInterface class is not intended to be instantiated directly. You can retrieve an interface to Qt Designer 's action editor using the QDesignerFormEditorInterface::actionEditor () 函数。

You can control which actions that are available in the action editor's window using the manageAction () 和 unmanageAction () functions. An action that is managed by Qt Designer is available in the action editor while an unmanaged action is ignored.

QDesignerActionEditorInterface 还提供 core () function that you can use to retrieve a pointer to Qt Designer 's current QDesignerFormEditorInterface object, and the setFormWindow () function that enables you to change the currently selected form window.

另请参阅 QDesignerFormEditorInterface and QDesignerFormWindowInterface .

成员函数文档编制

QDesignerActionEditorInterface:: QDesignerActionEditorInterface ( QWidget * parent , Qt::WindowFlags flags = Qt::WindowFlags())

Constructs an action editor interface with the given parent and the specified window flags .

[虚拟] QDesignerActionEditorInterface:: ~QDesignerActionEditorInterface ()

Destroys the action editor interface.

[虚拟] QDesignerFormEditorInterface *QDesignerActionEditorInterface:: core () const

Returns a pointer to Qt Designer 's current QDesignerFormEditorInterface 对象。

[pure virtual] void QDesignerActionEditorInterface:: manageAction ( QAction * action )

Instructs Qt Designer to manage the specified action . An action that is managed by Qt Designer is available in the action editor.

另请参阅 unmanageAction ().

[pure virtual slot] void QDesignerActionEditorInterface:: setFormWindow ( QDesignerFormWindowInterface * formWindow )

Sets the currently selected form window to formWindow .

[pure virtual] void QDesignerActionEditorInterface:: unmanageAction ( QAction * action )

Instructs Qt Designer to ignore the specified action . An unmanaged action is not available in the action editor.

另请参阅 manageAction ().