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
qandroidplatformforeignwindow.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QANDROIDPLATFORMFOREIGNWINDOW_H
6#define QANDROIDPLATFORMFOREIGNWINDOW_H
7
9
10#include <QtCore/QJniObject>
11
13
14Q_DECLARE_JNI_CLASS(View, "android/view/View")
15
16class QAndroidPlatformForeignWindow : public QAndroidPlatformWindow
17{
18public:
19 explicit QAndroidPlatformForeignWindow(QWindow *window, WId nativeHandle);
20 void initialize() override;
21 ~QAndroidPlatformForeignWindow();
22 void setVisible(bool visible) override;
23 void applicationStateChanged(Qt::ApplicationState state) override;
24 bool isForeignWindow() const override { return true; }
25
26 WId winId() const override;
27
28private:
29 void addViewToWindow();
30
31 QtJniTypes::View m_view;
32 bool m_nativeViewInserted;
33};
34
35QT_END_NAMESPACE
36
37#endif // QANDROIDPLATFORMFOREIGNWINDOW_H
Combined button and popup list for selecting options.