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
qquickwidget_plugin.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QQUICKWIDGET_PLUGIN_H
6#define QQUICKWIDGET_PLUGIN_H
7
8#include <QtQuick/qquickwindow.h>
9#include <QtUiPlugin/customwidget.h>
10
11QT_BEGIN_NAMESPACE
12
13class QQuickWidgetPlugin: public QObject, public QDesignerCustomWidgetInterface
14{
15 Q_OBJECT
16 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
17 Q_INTERFACES(QDesignerCustomWidgetInterface)
18public:
19 explicit QQuickWidgetPlugin(QObject *parent = nullptr);
20
21 QString name() const override;
22 QString group() const override;
23 QString toolTip() const override;
24 QString whatsThis() const override;
25 QString includeFile() const override;
26 QIcon icon() const override;
27 bool isContainer() const override;
28 QWidget *createWidget(QWidget *parent) override;
29 bool isInitialized() const override;
30 void initialize(QDesignerFormEditorInterface *core) override;
31 QString domXml() const override;
32
33private slots:
34 void sceneGraphError(QQuickWindow::SceneGraphError, const QString &);
35
36private:
37 bool m_initialized = false;
38};
39
41
42#endif // QQUICKWIDGET_PLUGIN_H
Combined button and popup list for selecting options.