Go to the documentation of this file.
11#include <QtDesigner/abstractformeditor.h>
12#include <QtDesigner/abstractformwindow.h>
14#include <QtCore/qplugin.h>
15#include <QtGui/qicon.h>
16#include <QtAxContainer/QAxWidget>
20using namespace Qt::StringLiterals;
29 return u"QAxWidget"_s;
34 return u"Containers"_s;
39 return tr(
"ActiveX control");
44 return tr(
"ActiveX control widget");
49 return u"qaxwidget.h"_s;
54 return QIcon(QDesignerAxWidget::widgetIcon());
65 const bool isFormEditor = parent !=
nullptr
66 && QDesignerFormWindowInterface::findFormWindow(parent) !=
nullptr;
75 return m_core !=
nullptr;
80 if (m_core !=
nullptr)
85 QExtensionManager *mgr = core->extensionManager();
86 ActiveXPropertySheetFactory::registerExtension(mgr);
87 ActiveXTaskMenuFactory::registerExtension(mgr, Q_TYPEID(QDesignerTaskMenuExtension));
89 mgr->registerExtensions(extraInfoFactory, Q_TYPEID(QDesignerExtraInfoExtension));
94 return QStringLiteral(R"(<ui language="c++">
95 <widget class="QAxWidget" name="axWidget">
96 <property name="geometry">
97 <rect>
98 <x>0</x>
99 <y>0</y>
100 <width>80</width>
101 <height>70</height>
102 </rect>
103 </property>
104 </widget>
105</ui>)");
Combined button and popup list for selecting options.