blob: c84a370504c11682fabb5eebb57e808193ac81f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/***************************************************************************************************
Copyright (C) 2023 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
***************************************************************************************************/
#pragma once
#include <QObject>
class QQmlEngine;
class QQuickView;
class QWindow;
class MainWindow;
class EmbeddedWindow : public QObject
{
Q_OBJECT
public:
EmbeddedWindow(QQmlEngine *qmlEngine, MainWindow *mainWindow);
~EmbeddedWindow();
public slots:
void show();
void close();
private:
QQmlEngine *qmlEngine = nullptr;
QQuickView *quickView = nullptr;
MainWindow *mainWindow = nullptr;
QWindow *embeddedWindow = nullptr;
};
|