このページでは

QDesignerFormEditorInterface Class

QDesignerFormEditorInterface クラスを使用すると、Qt Widgets Designer のさまざまなコンポーネントにアクセスできます。詳細...

ヘッダー #include <QDesignerFormEditorInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
qmake: QT += designer
継承: QObject

パブリック関数

QDesignerFormEditorInterface(QObject *parent = nullptr)
virtual ~QDesignerFormEditorInterface()
QDesignerActionEditorInterface *actionEditor() const
QExtensionManager *extensionManager() const
QDesignerFormWindowManagerInterface *formWindowManager() const
QDesignerObjectInspectorInterface *objectInspector() const
QDesignerPropertyEditorInterface *propertyEditor() const
void setActionEditor(QDesignerActionEditorInterface *actionEditor)
void setObjectInspector(QDesignerObjectInspectorInterface *objectInspector)
void setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor)
void setWidgetBox(QDesignerWidgetBoxInterface *widgetBox)
QWidget *topLevel() const
QDesignerWidgetBoxInterface *widgetBox() const

詳細な説明

Qt Widgets Designer現在の QDesignerFormEditorInterface オブジェクトは、Qt Widgets Designer'のすべてのコンポーネントに関する情報を保持します:アクションエディタ、オブジェクトインスペクタ、プロパティエディタ、ウィジェットボックス、拡張およびフォームウィンドウマネージャです。QDesignerFormEditorInterfaceには、これらすべてのコンポーネントへのインタフェースを提供する関数のコレクションが含まれています。これらの関数は通常、それぞれのコンポーネントに問い合わせ(および操作)するために使用されます。例えば

        auto *objectInspector = formEditor->objectInspector();
        auto *manager = formEditor->formWindowManager();

        objectInspector->setFormWindow(manager->formWindow(0));

QDesignerFormEditorInterface は、直接インスタンス化することを意図していません。Qt Widgets Designer の現在の QDesignerFormEditorInterface オブジェクト ( 上の例ではformEditor ) へのポインタは、QDesignerCustomWidgetInterface::initialize() 関数のパラメータによって提供されます。カスタムウィジェットプラグインを実装する場合は、QDesignerCustomWidgetInterface をサブクラス化して、Qt Widgets Designer にプラグインを公開する必要があります。

QDesignerFormEditorInterfaceは、アクションエディタ、プロパティエディタ、オブジェクトインスペクタ、ウィジェットボックスを設定する関数も提供します。これらは独自のカスタムコンポーネントを提供したい場合にのみ有用です。

デザイナが他のプログラムに組み込まれている場合、独自の設定マネージャを提供することができます。このマネージャはQt Widgets Designer のコンポーネントによって永続的なコンフィギュレーション設定を保存/取得するために使用されます。デフォルトのマネージャはQSettings をバックエンドとして使用します。

最後に、QDesignerFormEditorInterface は、Qt Widgets Designer'のトップレベル・ウィジェットを返すtopLevel() 関数を提供します。

QDesignerCustomWidgetInterfaceも参照してください

メンバ関数のドキュメント

[explicit] QDesignerFormEditorInterface::QDesignerFormEditorInterface(QObject *parent = nullptr)

指定されたparent で QDesignerFormEditorInterface オブジェクトを構築します。

[virtual noexcept] QDesignerFormEditorInterface::~QDesignerFormEditorInterface()

QDesignerFormEditorInterface オブジェクトを破棄する。

QDesignerActionEditorInterface *QDesignerFormEditorInterface::actionEditor() const

Qt Widgets Designer のアクションエディターへのインターフェイスを返します。

setActionEditor()も参照してください

QExtensionManager *QDesignerFormEditorInterface::extensionManager() const

Qt Widgets Designer の拡張マネージャへのインターフェイスを返します。

QDesignerFormWindowManagerInterface *QDesignerFormEditorInterface::formWindowManager() const

Qt Widgets Designer のフォームウィンドウマネージャへのインターフェイスを返します。

QDesignerObjectInspectorInterface *QDesignerFormEditorInterface::objectInspector() const

Qt Widgets Designer のオブジェクトインスペクタへのインターフェイスを返します。

setObjectInspector()も参照 ください。

QDesignerPropertyEditorInterface *QDesignerFormEditorInterface::propertyEditor() const

Qt Widgets Designer のプロパティエディタへのインタフェースを返します。

setPropertyEditor()も参照してください

void QDesignerFormEditorInterface::setActionEditor(QDesignerActionEditorInterface *actionEditor)

Qt Widgets Designer のアクション・エディタを指定されたactionEditor に設定します。

actionEditor()も参照

void QDesignerFormEditorInterface::setObjectInspector(QDesignerObjectInspectorInterface *objectInspector)

Qt Widgets Designer のオブジェクトインスペクタを、指定されたobjectInspector に設定する。

objectInspector()も参照

void QDesignerFormEditorInterface::setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor)

Qt Widgets Designer'のプロパティエディタを指定されたpropertyEditor に設定します。

propertyEditor()も参照のこと

void QDesignerFormEditorInterface::setWidgetBox(QDesignerWidgetBoxInterface *widgetBox)

Qt Widgets Designer'のウィジェット・ボックスを指定されたwidgetBox に設定する。

widgetBox()も参照

QWidget *QDesignerFormEditorInterface::topLevel() const

Qt Widgets Designer'のトップレベル・ウィジェットを返します。

QDesignerWidgetBoxInterface *QDesignerFormEditorInterface::widgetBox() const

Qt Widgets Designer のウィジェット・ボックスへのインターフェイスを返します。

setWidgetBox()も参照してください

© 2026 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 the GNU 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.