Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QANDROIDPLATFORMFOREIGNWINDOW_H
5#define QANDROIDPLATFORMFOREIGNWINDOW_H
6
8
9#include <QtCore/QJniObject>
10
12
13Q_DECLARE_JNI_CLASS(View, "android/view/View")
14
16{
17public:
18 explicit QAndroidPlatformForeignWindow(QWindow *window, WId nativeHandle);
20 void setGeometry(const QRect &rect) override;
21 void setVisible(bool visible) override;
22 void applicationStateChanged(Qt::ApplicationState state) override;
23 bool isForeignWindow() const override { return true; }
24
25 WId winId() const override;
26
27private:
28 void addViewToWindow();
29
30 QtJniTypes::View m_view;
31 bool m_nativeViewInserted;
32};
33
35
36#endif // QANDROIDPLATFORMFOREIGNWINDOW_H
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtGui
Definition qwindow.h:63
rect
[4]
else opt state
[0]
Combined button and popup list for selecting options.
ApplicationState
Definition qnamespace.h:262
QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS(Environment, "android/os/Environment")
aWidget window() -> setWindowTitle("New Window Title")
[2]