DtkDeclarative
DTK Declarative module
载入中...
搜索中...
未找到
dqmlappmainwindowinterface.h
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DQMLAPPMAINWINDOWINTERFACE_H
6#define DQMLAPPMAINWINDOWINTERFACE_H
7
8#include <QGuiApplication>
9
10#include <dtkdeclarative_global.h>
11
12#define DQmlAppMainWindowInterface_iid "dtk.qml.app.mainwindow.interface"
13
14QT_BEGIN_NAMESPACE
15class QQmlApplicationEngine;
16QT_END_NAMESPACE
17
18DQUICK_BEGIN_NAMESPACE
19
21{
22public:
24 virtual ~DQmlAppMainWindowInterface() = default;
25
26 virtual QUrl mainComponentPath() const = 0;
27 virtual void initialize(QQmlApplicationEngine *engine);
28 virtual void finishedLoading(QQmlApplicationEngine *engine);
29};
30
31DQUICK_END_NAMESPACE
32
33Q_DECLARE_INTERFACE(DTK_QUICK_NAMESPACE::DQmlAppMainWindowInterface, DQmlAppMainWindowInterface_iid)
34#endif // DQMLAPPPLUGININTERFACE_H
Definition dqmlappmainwindowinterface.h:21