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