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
qohosview.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QOHOSVIEW_H
5#define QOHOSVIEW_H
6
7#include <QtCore/private/qohoscommon_p.h>
8#include <QtCore/qflags.h>
9#include <QtCore/qglobal.h>
10#include <QtCore/qmimedata.h>
11#include <QtCore/qobject.h>
12#include <QtCore/qpoint.h>
13#include <QtCore/qpointer.h>
14#include <QtCore/qsharedpointer.h>
15#include <QtCore/qsize.h>
16#include <QtCore/qstring.h>
17#include <QtGui/qimage.h>
18#include <QtGui/qwindow.h>
19#include <memory>
20#include <optional>
21#include <qohosdisplayinfo.h>
22#include <qohosforeignwindow.h>
23#include <qohosplatformwindow.h>
24#include <qohosruntimedevicetypeandmode.h>
25#include <qohossettings.h>
26#include <qohoswindowproperty.h>
27#include <render/qnativenode.h>
28#include <render/qohossurface.h>
29#include <render/qohoswindowproxy.h>
30#include <functional>
31#include <vector>
32
33QT_BEGIN_NAMESPACE
34
35enum class ViewGeometryPersistencePolicy
36{
37 Disabled,
38 Enabled,
39 FollowSystemSetting,
40 Ignore,
41};
42
43class QOhosView : public QObject
44{
46
47public:
55
61
66
72
79
81 {
82 bool maxButtonShown = true;
83 bool minButtonShown = true;
84 bool closeButtonShown = true;
85 bool operator==(const WindowMinMaxCloseButtonsState &other) const;
86 bool operator!=(const WindowMinMaxCloseButtonsState &other) const;
87 };
88
94
96 QOhosPlatformWindow *window, QOhosPropertiesProvider windowPropertiesProvider);
97
98 explicit QOhosView(
99 QWindow *ownerWindow, QSharedPointer<QNativeNode> nativeNode,
100 QOhosPropertiesProvider propertiesProvider);
101
102 void setSizeLimits(const QSize &minSize, const QSize &maxSize);
103 void setPosition(const QPoint &position);
104 void setPositionOnScreenImmediate(const QPoint &position, QOhosDisplayInfo::JsDisplayId jsDisplayId);
105 void setSize(const QSize &size);
106 void setOpacity(qreal opacity);
107 void setCursor(const QCursor &cursor);
108 void setTransparentBackground(bool transparent);
109 void setFocusable(bool focusable);
110 void setWindowTransparentForInput(bool transparentForInput);
111 void setModality(Qt::WindowModality modality);
112 void setTitle(const QString &title);
113 void raise();
114 void lower();
115 void setFullScreen();
116 void recover();
117 void minimize();
118 void maximize();
119 void setWindowMask(const QOhosWindowProxy::WindowMask &windowMask);
121 void setParentOrReparent(QOhosView &parentView);
123 WId viewWindowId() const;
124 void addForeignWindowChild(QOhosForeignWindow *foreignWindow);
128 void setWindowStaysOnTop(bool staysOnTop);
129 void setFramelessWindow(bool frameless);
131 void setNativeNodeVisibility(bool visible);
132 QPixmap makeSnapshot() const;
133 bool startMoving();
134 void startDrag(
135 const std::vector<QImage> &images, const QPointF &hotspot,
136 const QMimeData &mimeData, QOhosConsumer<Qt::DropAction> dropActionConsumer);
137 void restoreMainWindow();
139 Qt::WindowStates previousWindowState, Qt::WindowStates currentWindowState);
141 Qt::WindowFlags previousWindowFlags, Qt::WindowFlags currentWindowFlags);
142 void handlePaletteChange();
143 QArkUi::QQtEmbeddedWindowNode::NodeAreaInfo nodeAreaInfo() const;
144 bool isNodeLaidOut() const;
145
146 void showImmediate();
147 void hide();
148 void requestActivate();
149 void forceGeometryUpdate();
150
151 QWindow *ownerWindow() const;
152 QOhosSurface *surfaceOrNull() const;
153
155 QMargins avoidAreaMargins(QOhosWindowProxy::AvoidAreaType type) const;
157 ViewType viewType() const;
159 const QOhosView *viewParentOrNull() const;
163
164 ~QOhosView();
165
168 void windowStatusChange(QOhosWindowProxy::WindowStatus windowStatus);
169 void windowVisibilityChange(bool visibility);
171 void avoidAreaChanged(QOhosWindowProxy::AvoidAreaType avoidAreaType, const QOhosWindowProxy::AvoidArea &avoidArea);
172 void windowRectChanged(QOhosWindowProxy::RectChangeOptions rectChangeOptions);
173 void windowRectChangedInGlobalDisplay(QOhosWindowProxy::RectChangeOptions rectChangeOptions);
174 void surfaceStatusChanged(const std::optional<QSize> &optSurfaceSize);
177 void nodeAreaChanged(QArkUi::QQtEmbeddedWindowNode::NodeAreaInfo areaChangeEvt);
178
179private:
180 void applyPhoneWindowChrome();
181
182 static constexpr QOhosRuntimeDeviceTypeAndMode allModes =
186
187 template <typename T, QOhosRuntimeDeviceTypeAndMode supportedModes = allModes>
188 struct SystemUpdateDataProperty
189 {
190 std::optional<T> optPendingUpdateRequest;
191 };
192
193 template<typename T>
194 using NoTabletSystemUpdateDataProperty = SystemUpdateDataProperty<T, QOhosRuntimeDeviceTypeAndMode::_2in1>;
195
196 template<typename T>
199
200 struct SystemUpdateData
201 {
202 WindowModeOnlySystemUpdateDataProperty<QSize> size;
203 WindowModeOnlySystemUpdateDataProperty<std::pair<QSize, QSize>> sizeLimits;
204 WindowModeOnlySystemUpdateDataProperty<std::pair<QPoint, std::optional<QOhosDisplayInfo::JsDisplayId>>> position;
205 SystemUpdateDataProperty<bool> visibility;
206 NoTabletSystemUpdateDataProperty<bool> backgroundTransparent;
207 SystemUpdateDataProperty<QCursor> cursor;
208 NoTabletSystemUpdateDataProperty<bool> focusable;
209 SystemUpdateDataProperty<QColor> backgroundColor;
210 SystemUpdateDataProperty<int> brightness;
211 SystemUpdateDataProperty<int> contrast;
212 SystemUpdateDataProperty<int> saturation;
213 SystemUpdateDataProperty<bool> windowTransparentForInput;
214 WindowModeOnlySystemUpdateDataProperty<Qt::WindowModality> modality;
215 WindowModeOnlySystemUpdateDataProperty<QString> title;
216 WindowModeOnlySystemUpdateDataProperty<WindowMinMaxCloseButtonsState> windowMinMaxCloseButtonsState;
217 WindowModeOnlySystemUpdateDataProperty<bool> windowStaysOnTop;
218 WindowModeOnlySystemUpdateDataProperty<bool> frameless;
219 };
220
221 static constexpr auto makeSystemUpdateDataPropertyUpdateFuncPairsTuple()
222 {
223 return std::make_tuple(
224 std::make_pair(&SystemUpdateData::sizeLimits, &QOhosView::updateWindowSizeLimits),
225 std::make_pair(&SystemUpdateData::size, &QOhosView::updateWindowSize),
226 std::make_pair(&SystemUpdateData::position, &QOhosView::updateWindowPosition),
227 std::make_pair(&SystemUpdateData::backgroundTransparent, &QOhosView::updateWindowBackgroundTransparency),
228 std::make_pair(&SystemUpdateData::cursor, &QOhosView::updateWindowCursor),
229 std::make_pair(&SystemUpdateData::focusable, &QOhosView::updateWindowFocusable),
230 std::make_pair(&SystemUpdateData::backgroundColor, &QOhosView::updateWindowBackgroundColor),
231 std::make_pair(&SystemUpdateData::brightness, &QOhosView::updateWindowBrightness),
232 std::make_pair(&SystemUpdateData::contrast, &QOhosView::updateWindowContrast),
233 std::make_pair(&SystemUpdateData::saturation, &QOhosView::updateWindowSaturation),
234 std::make_pair(&SystemUpdateData::windowTransparentForInput, &QOhosView::updateWindowTransparentForInput),
235 std::make_pair(&SystemUpdateData::modality, &QOhosView::updateWindowModality),
236 std::make_pair(&SystemUpdateData::title, &QOhosView::updateWindowTitle),
237 std::make_pair(&SystemUpdateData::windowMinMaxCloseButtonsState, &QOhosView::updateWindowMinMaxCloseButtonsState),
238 std::make_pair(&SystemUpdateData::windowStaysOnTop, &QOhosView::updateWindowStaysOnTop),
239 std::make_pair(&SystemUpdateData::frameless, &QOhosView::updateWindowFrameless));
240 };
241
242 template <typename T, QOhosRuntimeDeviceTypeAndMode SupportedModes>
243 void setSystemUpdateProperty(SystemUpdateDataProperty<T, SupportedModes> SystemUpdateData::*property, const T &value);
244
245 void scheduleSystemUpdateIfNeeded();
246 void updateWindowSize(const QSize &size);
247 void updateWindowSizeLimits(const std::pair<QSize, QSize> &sizeLimits);
248 void updateWindowPosition(const std::pair<QPoint, std::optional<QOhosDisplayInfo::JsDisplayId>> &position);
249 void updateWindowBackgroundTransparency(bool transparent);
250 void updateWindowCursor(const QCursor &cursor);
251 void updateWindowFocusable(bool focusable);
252 void updateWindowBackgroundColor(const QColor &color);
253 void updateWindowBrightness(int brightness);
254 void updateWindowContrast(int contast);
255 void updateWindowSaturation(int saturation);
256 void updateWindowTransparentForInput(bool transparentForInput);
257 void updateWindowModality(Qt::WindowModality modality);
258 void updateWindowTitle(const QString &title);
259 void updateWindowMinMaxCloseButtonsState(const WindowMinMaxCloseButtonsState &state);
260 void updateWindowStaysOnTop(bool staysOnTop);
261 void updateWindowFrameless(bool frameless);
262 void syncWindowStateImmediate(WindowStateSyncReason reason = WindowStateSyncReason::Normal);
263 void flushSystemPropertyUpdatesImmediate();
264 QOhosWindowProxy *flushedWindowProxyOrNull();
265 void setOrResetWindowProxy(std::shared_ptr<QOhosWindowProxy> windowProxy, QWindow *optLogicalParent);
266 const QOhosView *ancestorViewWithWindowOrNull() const;
267 void hideMainWindow();
268 void setWindowCornerRadius(double radius);
269 void setPrivacyMode(bool privacyModeEnabled);
270 void setBackgroundColor(const QColor &color);
271 void setBrightness(int brightness);
272 void setContrast(int contrast);
273 void setSaturation(int saturation);
274 void setWindowKeepScreenOn(bool keepScreenOn);
275 void setFixedSizeStateEnabled(bool fixedSizeStateEnabled);
276 void setWindowDragResizable(bool dragResizable);
277 void showWindow();
278 void sendAsyncSyntheticWindowActiveEvent();
279
280 std::shared_ptr<QOhosWindowProxy> tryCreateWindowProxyIfNeeded(ViewType viewType, QWindow *optLogicalParent);
281
282 bool isWindowTransparencyRequested() const;
283
284 QOhosPropertiesProvider m_windowPropertiesProvider;
285 QPointer<QWindow> m_ownerWindow;
286 std::shared_ptr<QOhosWindowProxy> m_ohosWindowProxy;
287 QSharedPointer<QNativeNode> m_nativeNode;
288 // True once the node has reported its first area through the
289 // area-change handler. Before that nodeAreaInfo() returns an empty
290 // 0x0 rect, so callers must not treat it as geometry. The node lives
291 // for the whole view (reset only in the destructor), so this is
292 // never cleared.
293 bool m_nodeLaidOut = false;
294 SystemUpdateData m_updateData;
295 bool m_updatePending;
296 std::function<QOhosWindowProxy::AvoidArea(QOhosWindowProxy::AvoidAreaType)> m_avoidAreasProvider;
297 bool m_requireHandheldDeviceSupport;
298 QtOhos::InternalWindowId m_ownerWindowId;
299 bool m_windowDestroyed = false;
300 std::optional<ViewType> m_viewType;
301 QPointer<QWindow> m_optLogicalParent;
302 std::optional<WindowHideMethod> m_lastMainWindowHideMethod;
303 ViewGeometryPersistencePolicy m_geometryPersistencePolicy = ViewGeometryPersistencePolicy::Ignore;
304 std::shared_ptr<void> m_windowPropertiesProviderCallbacksHandle;
305 std::function<void()> m_optPostSurfaceDrawTask;
306 int m_pendingSelfMinimizeEchoes = 0;
307};
308
309template <typename T, QOhosRuntimeDeviceTypeAndMode SupportedModes>
310void QOhosView::setSystemUpdateProperty(SystemUpdateDataProperty<T, SupportedModes> SystemUpdateData::*propertyMemberPtr, const T &value)
311{
312 QFlags<QOhosRuntimeDeviceTypeAndMode> supportedModes(SupportedModes);
313
314 if (m_requireHandheldDeviceSupport
315 && !supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::HandheldDeviceWindowPcMode)
316 && !supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::HandheldDeviceFullScreen)) {
317 return;
318 }
319
320 bool windowModeOnly =
321 !supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::HandheldDeviceFullScreen)
322 && (supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::_2in1)
323 || supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::HandheldDeviceWindowPcMode));
324
325 if (windowModeOnly && !QOhosSettings::instance().isWindowPcModeEnabled()
326 && viewType() == ViewType::MainWindow) {
327 return;
328 }
329
330 auto &property = m_updateData.*propertyMemberPtr;
331 if (property.optPendingUpdateRequest != value) {
332 property.optPendingUpdateRequest = value;
333 scheduleSystemUpdateIfNeeded();
334 }
335}
336
337QT_END_NAMESPACE
338
339#endif
static const QOhosPropertyDescriptor< bool > windowKeepScreenOnProperty
static const QOhosPropertyDescriptor< QColor > surfaceBackgroundColorProperty
void setWindowTitle(const QString &title) override
Reimplement to set the window title to title.
QOhosPlatformScreen * platformScreen() const
bool mainWindowTagValueOrFalse() const
Qt::WindowStates windowStates() const
std::optional< QCursor > m_cursor
void setDisplayIdFromOhos(std::optional< QOhosDisplayInfo::JsDisplayId > displayId)
bool setMouseGrabEnabled(bool grab) override
static std::optional< T > tryGetWindowOrWidgetProperty(QObject *windowOrWidget)
void setWindowStateFromOhos(Qt::WindowStates state)
static const QOhosPropertyDescriptor< int > windowBrightnessProperty
static const QOhosPropertyDescriptor< bool > mainWindowTagProperty
static const QOhosPropertyDescriptor< QWindow * > subWindowOfTagProperty
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
bool setKeyboardGrabEnabled(bool grab) override
static const QOhosPropertyDescriptor< bool > windowPrivacyModeSettingProperty
bool windowEvent(QEvent *event) override
Reimplement this method to be able to do any platform specific event handling.
QtOhos::InternalWindowId m_windowId
static const QOhosPropertyDescriptor< double > windowCornerRadiusProperty
static bool isWindowBeingClosedOrDestroyed(QWindow *window)
static std::shared_ptr< void > setSurfaceConsumer(QWindow *targetWindow, QObject *surfaceConsumerContext, std::function< void(std::optional< void * >)> surfaceConsumer)
QRect lastRequestedWindowFrameGeometry() const
QMargins safeAreaMargins() const override
The safe area margins of a window represent the area that is safe to place content within,...
static const QOhosPropertyDescriptor< int > windowSaturationProperty
void setExposedFromOhos(bool exposed)
static const QOhosPropertyDescriptor< int > windowContrastProperty
static QOhosPlatformWindow * fromQWindow(QWindow *window)
QOhosPropertiesProvider propertiesProvider()
static const QOhosPropertyDescriptor< bool > floatWindowTagProperty
void setVisible(bool visible) override
Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false.
static void tagWindowOrWidgetAsFloatWindow(QObject *windowOrWidgetToTag, bool showAsFloatWindow)
static const QOhosPropertyDescriptor< bool > windowDragResizableProperty
static void tagWindowOrWidgetAsSubWindowOf(QObject *windowOrWidgetToTag, QWindow *targetMainWindow)
virtual void onWindowFlagsChanged(Qt::WindowFlags previousWindowFlags, Qt::WindowFlags currentWindowFlags)
QtOhos::InternalWindowId internalWindowId() const
static void tagWindowOrWidgetAsMainWindow(QObject *windowOrWidgetToTag, bool forceMainWindow)
Qt::WindowFlags m_windowFlags
void propagateSizeHints() override
Reimplement to propagate the size hints of the QWindow.
static QOhosPlatformWindow * fromQWindowOrNull(QWindow *window)
virtual QOhosSurface * ownedSurfaceOrNull() const
static QWindow * getWindowOrWidgetAsSubWindowOfTagValue(QObject *windowOrWidget)
virtual void onWindowStateChanged(Qt::WindowStates oldWindowState, Qt::WindowStates currentWindowState)
void setParent(const QPlatformWindow *newParent) override
This function is called to enable native child window in QPA.
QOhosPlatformWindow(QWindow *window)
void setCursor(const QCursor &cursor)
std::optional< Qt::WindowStates > m_lastWindowState
bool shouldDisplayAsOhosWindow() const
static const QOhosPropertyDescriptor< int > nativeNodeRenderFitPolicyHintProperty
std::unique_ptr< QMargins > m_optFrameMargins
void setWindowGeometryFromOhos(const QRect &nativeWindowDrawGeometry)
std::optional< double > windowId() const override
QMargins frameMargins() const override
void initialize() override
Called as part of QWindow::create(), after constructing the window.
void setSafeAreaMarginsFromOhos(const QMargins &margins)
QPlatformScreen * screen() const override
void setWindowFlags(Qt::WindowFlags flags) override
Requests setting the window flags of this surface to flags.
bool floatWindowTagValueOrFalse() const
void setWindowState(Qt::WindowStates state) override
Requests setting the window state of this surface to type.
void notifyInputSystemsWindowActiveStatusChanged(bool active)
static const QOhosPropertyDescriptor< bool > windowFixedSizeStateProperty
bool isExposed() const final
Returns if this window is exposed in the windowing system.
void requestActivateWindow() override
Reimplement to let Qt be able to request activation/focus for a window.
Qt::WindowStates m_windowState
DecorationPreset decorationPreset() const
QWindow * validSubWindowOfTagValueOrNull() const
Qt::WindowFlags windowFlags() const
static void setWindowOrWidgetProperty(QObject *windowOrWidget, T propertyValue)
bool shouldShowWindowWithoutActivating() const
virtual QOhosView * ownedViewOrNull() const
static bool isEmbeddedWindow(QWindow *window)
void setWindowMarginsFromOhos(const QMargins &margins)
static Qt::WindowFlags platformWindowFlagsForQWindow(QWindow *window)
QOhosPropertiesProvider(QOhosPropertiesStore &store)
std::optional< T > tryGetProperty() const
std::shared_ptr< void > addPropertyWriteCallback(QOhosConsumer< T > propertyWriteCallback)
QOhosPropertiesStore(QObject *qObject)
std::shared_ptr< void > addPropertyWriteCallback(QOhosConsumer< T > propertyWriteCallback)
std::optional< T > tryGetProperty() const
void notifyPropertyWrite(const QByteArray &propertyName)
void setExtraUsageBitsForNativeWindowBuffer(std::uint64_t usageSetBits)
::OHNativeWindow * nativeWindow() const
static constexpr ::OH_NativeBuffer_Format bufferFormat
void paintOnNativeWindowSurface(std::function< std::vector<::Region::Rect >(QImage &, ::BufferHandle *)> paintFunc, std::function< void(::BufferHandle *)> onFlushSuccessFunc)
static std::optional< QSize > tryGetBufferGeometryForWindow(::OHNativeWindow *nativeWindow)
void setNativeWindowSurface(::OHNativeWindow *nativeWindow, const std::optional< QSize > &optSurfaceSize)
static QImage::Format mapNativeBufferFormatToQImageFormatOrFail(std::int32_t format)
std::optional< QSize > surfaceResolution() const
QOhosSurface(::OHNativeWindow *nativeWindow)
EGLSurface tryGetOrCreateEGLWindowSurface(EGLDisplay display, EGLConfig config, bool swappingBuffers)
void clearNativeWindowSurface()
void windowStatusChange(QOhosWindowProxy::WindowStatus windowStatus)
void setParentOrReparent(QOhosView &parentView)
void requestActivate()
bool consumePendingSelfMinimizeEcho()
void setCursor(const QCursor &cursor)
void handleWindowFlagsChange(Qt::WindowFlags previousWindowFlags, Qt::WindowFlags currentWindowFlags)
void addForeignWindowChild(QOhosForeignWindow *foreignWindow)
void handleWindowStateChange(Qt::WindowStates previousWindowState, Qt::WindowStates currentWindowState)
void restoreMainWindow()
void setFocusable(bool focusable)
QArkUi::QQtEmbeddedWindowNode::NodeAreaInfo nodeAreaInfo() const
QOhosSurface * surfaceOrNull() const
void windowVisibilityChange(bool visibility)
void setPositionOnScreenImmediate(const QPoint &position, QOhosDisplayInfo::JsDisplayId jsDisplayId)
QList< QRect > displayCutoutRects() const
void setTransparentBackground(bool transparent)
void setModality(Qt::WindowModality modality)
WId viewWindowId() const
bool isFullscreenImmersiveModeEnabled()
void setFramelessWindow(bool frameless)
QPixmap makeSnapshot() const
void setWindowShadowDisabled()
void setWindowTransparentForInput(bool transparentForInput)
void tryDetachFromEmbeddedParent()
ViewType viewType() const
QMargins avoidAreaMargins(QOhosWindowProxy::AvoidAreaType type) const
QWindow * ownerWindow() const
void handleSurfaceContentsUpdated()
void hide()
WindowStateSyncReason
Definition qohosview.h:90
void windowRectChanged(QOhosWindowProxy::RectChangeOptions rectChangeOptions)
void windowRectChangedInGlobalDisplay(QOhosWindowProxy::RectChangeOptions rectChangeOptions)
void forceGeometryUpdate()
void externalContentInteractionDetected()
void setWindowMinMaxCloseButtonState(const WindowMinMaxCloseButtonsState &state)
void setWindowMask(const QOhosWindowProxy::WindowMask &windowMask)
void setSizeLimits(const QSize &minSize, const QSize &maxSize)
std::optional< QSize > surfaceResolution() const
void windowTouchOutside()
void nodeAreaChanged(QArkUi::QQtEmbeddedWindowNode::NodeAreaInfo areaChangeEvt)
void handlePaletteChange()
void lower()
bool isNodeLaidOut() const
void windowDisplayIdChanged(QOhosDisplayInfo::JsDisplayId)
static std::unique_ptr< QOhosView > createForWindow(QOhosPlatformWindow *window, QOhosPropertiesProvider windowPropertiesProvider)
void minimize()
void setOpacity(qreal opacity)
void setNativeNodeVisibility(bool visible)
void setWindowStaysOnTop(bool staysOnTop)
void setFullScreen()
void maximize()
ViewGeometry viewGeometry() const
void avoidAreaChanged(QOhosWindowProxy::AvoidAreaType avoidAreaType, const QOhosWindowProxy::AvoidArea &avoidArea)
void setSize(const QSize &size)
void recover()
bool startMoving()
void setPosition(const QPoint &position)
QOhosView(QWindow *ownerWindow, QSharedPointer< QNativeNode > nativeNode, QOhosPropertiesProvider propertiesProvider)
bool isSubWindowCoveringFullScreen() const
void showImmediate()
void surfaceStatusChanged(const std::optional< QSize > &optSurfaceSize)
QRect nodeParentRelativeGeometryPixels() const
void setTitle(const QString &title)
void startDrag(const std::vector< QImage > &images, const QPointF &hotspot, const QMimeData &mimeData, QOhosConsumer< Qt::DropAction > dropActionConsumer)
const QOhosView * viewParentOrNull() const
QRect nodeScreenGeometryPixels() const
void raise()
QtOhosQpa::enums::ohos::window::AvoidAreaType AvoidAreaType
bool sendEvent(WindowSystemEvent *event) override
Combined button and popup list for selecting options.
QOhosView * mapQWindowToViewOrNull(QWindow *window)
std::optional< T > tryMapFromQVariant(QVariant variant)
std::shared_ptr< QWindowSystemEventHandler > makeApplicationStateTracker()
void setQOhosPropertyOnQObject(QObject *qObject, T propertyValue)
std::optional< T > tryGetQOhosPropertyFromQObject(QObject *qObject)
bool disableWindowFocusableBeforeLoadContent
Definition qohosview.h:64
std::optional< QOhosDisplayInfo::JsDisplayId > displayId
Definition qohosview.h:75
bool operator==(const WindowMinMaxCloseButtonsState &other) const
bool operator!=(const WindowMinMaxCloseButtonsState &other) const