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
4#ifndef QQUICKWIDGET_PLUGIN_H
5#define QQUICKWIDGET_PLUGIN_H
6
7#include <QtQuick/qquickwindow.h>
8#include <QtUiPlugin/customwidget.h>
9
10QT_BEGIN_NAMESPACE
11
12class QQuickWidgetPlugin: public QObject, public QDesignerCustomWidgetInterface
13{
14 Q_OBJECT
15 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
16 Q_INTERFACES(QDesignerCustomWidgetInterface)
17public:
18 explicit QQuickWidgetPlugin(QObject *parent = nullptr);
19
20 QString name() const override;
21 QString group() const override;
22 QString toolTip() const override;
23 QString whatsThis() const override;
24 QString includeFile() const override;
25 QIcon icon() const override;
26 bool isContainer() const override;
27 QWidget *createWidget(QWidget *parent) override;
28 bool isInitialized() const override;
29 void initialize(QDesignerFormEditorInterface *core) override;
30 QString domXml() const override;
31
32private slots:
33 void sceneGraphError(QQuickWindow::SceneGraphError, const QString &);
34
35private:
36 bool m_initialized = false;
37};
38
40
41#endif // QQUICKWIDGET_PLUGIN_H
Combined button and popup list for selecting options.