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.