Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
tools_designer_src_lib_extension_qextensionmanager.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
//! [0]
5
void
MyPlugin::initialize(QDesignerFormEditorInterface *formEditor)
6
{
7
if
(initialized)
8
return
;
9
10
auto
*manager = formEditor->extensionManager();
11
Q_ASSERT(manager !=
nullptr
);
12
13
manager->registerExtensions(
new
MyExtensionFactory(manager),
14
Q_TYPEID(QDesignerTaskMenuExtension));
15
16
initialized =
true
;
17
}
18
//! [0]
qttools
src
designer
src
designer
doc
snippets
lib
tools_designer_src_lib_extension_qextensionmanager.cpp
Generated on Sat Sep 21 2024 00:50:29 for Qt by
1.12.0