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/qflags.h>
8#include <QtCore/qglobal.h>
9#include <QtCore/qmimedata.h>
10#include <QtCore/qobject.h>
11#include <QtCore/qpoint.h>
12#include <QtCore/qsize.h>
13#include <QtCore/qstring.h>
14#include <QtGui/qimage.h>
15#include <QtGui/qwindow.h>
16#include <memory>
17#include <optional>
18#include <qohosdisplayinfo.h>
19#include <qohosforeignwindow.h>
20#include <qohosplatformwindow.h>
21#include <qohosplugincore.h>
22#include <qohosruntimedevicetypeandmode.h>
23#include <qohossettings.h>
24#include <qohoswindowproperty.h>
25#include <render/qnativenode.h>
26#include <render/qohossurface.h>
27#include <render/qohoswindowproxy.h>
28#include <functional>
29#include <vector>
30
31QT_BEGIN_NAMESPACE
32
33enum class ViewGeometryPersistencePolicy
34{
35 Disabled,
36 Enabled,
37 FollowSystemSetting,
38 Ignore,
39};
40
41class QOhosView : public QObject
42{
44
45public:
53
59
64
70
77
79 {
80 bool maxButtonShown = true;
81 bool minButtonShown = true;
82 bool closeButtonShown = true;
83 bool operator==(const WindowMinMaxCloseButtonsState &other) const;
84 bool operator!=(const WindowMinMaxCloseButtonsState &other) const;
85 };
86
92
94 QOhosPlatformWindow *window, QOhosPropertiesProvider windowPropertiesProvider);
95
96 explicit QOhosView(
97 QWindow *ownerWindow, QSharedPointer<QNativeNode> nativeNode,
98 QOhosPropertiesProvider propertiesProvider);
99
100 void setSizeLimits(const QSize &minSize, const QSize &maxSize);
101 void setPosition(const QPoint &position);
102 void setPositionOnScreenImmediate(const QPoint &position, QOhosDisplayInfo::JsDisplayId jsDisplayId);
103 void setSize(const QSize &size);
104 void setOpacity(qreal opacity);
105 void setCursor(const QCursor &cursor);
106 void setTransparentBackground(bool transparent);
107 void setFocusable(bool focusable);
108 void setWindowTransparentForInput(bool transparentForInput);
109 void setModality(Qt::WindowModality modality);
110 void setTitle(const QString &title);
111 void raise();
112 void lower();
113 void setFullScreen();
114 void recover();
115 void minimize();
116 void maximize();
117 void setWindowMask(const QOhosWindowProxy::WindowMask &windowMask);
119 void setParentOrReparent(QOhosView &parentView);
121 WId viewWindowId() const;
122 void addForeignWindowChild(QOhosForeignWindow *foreignWindow);
126 void setWindowStaysOnTop(bool staysOnTop);
127 void setFramelessWindow(bool frameless);
129 void setNativeNodeVisibility(bool visible);
130 QPixmap makeSnapshot() const;
131 bool startMoving();
132 void startDrag(
133 const std::vector<QImage> &images, const QPointF &hotspot,
134 const QMimeData &mimeData, QOhosConsumer<Qt::DropAction> dropActionConsumer);
135 void restoreMainWindow();
137 Qt::WindowStates previousWindowState, Qt::WindowStates currentWindowState);
139 Qt::WindowFlags previousWindowFlags, Qt::WindowFlags currentWindowFlags);
140 void handlePaletteChange();
141 QArkUi::QQtEmbeddedWindowNode::NodeAreaInfo nodeAreaInfo() const;
142
143 void showImmediate();
144 void hide();
145 void requestActivate();
146 void forceGeometryUpdate();
147
148 QWindow *ownerWindow() const;
149 QOhosSurface *surfaceOrNull() const;
150
152 QMargins avoidAreaMargins(QOhosWindowProxy::AvoidAreaType type) const;
154 ViewType viewType() const;
156 const QOhosView *viewParentOrNull() const;
160
161 ~QOhosView();
162
165 void windowStatusChange(QOhosWindowProxy::WindowStatus windowStatus);
166 void windowVisibilityChange(bool visibility);
168 void avoidAreaChanged(QOhosWindowProxy::AvoidAreaType avoidAreaType, const QOhosWindowProxy::AvoidArea &avoidArea);
169 void windowRectChanged(QOhosWindowProxy::RectChangeOptions rectChangeOptions);
170 void windowRectChangedInGlobalDisplay(QOhosWindowProxy::RectChangeOptions rectChangeOptions);
171 void surfaceStatusChanged(const std::optional<QSize> &optSurfaceSize);
174 void nodeAreaChanged(QArkUi::QQtEmbeddedWindowNode::NodeAreaInfo areaChangeEvt);
175
176private:
177 void applyPhoneWindowChrome();
178
179 static constexpr QOhosRuntimeDeviceTypeAndMode allModes =
183
184 template <typename T, QOhosRuntimeDeviceTypeAndMode supportedModes = allModes>
185 struct SystemUpdateDataProperty
186 {
187 std::optional<T> optPendingUpdateRequest;
188 };
189
190 template<typename T>
191 using NoTabletSystemUpdateDataProperty = SystemUpdateDataProperty<T, QOhosRuntimeDeviceTypeAndMode::_2in1>;
192
193 template<typename T>
196
197 struct SystemUpdateData
198 {
199 WindowModeOnlySystemUpdateDataProperty<QSize> size;
200 WindowModeOnlySystemUpdateDataProperty<std::pair<QSize, QSize>> sizeLimits;
201 WindowModeOnlySystemUpdateDataProperty<std::pair<QPoint, std::optional<QOhosDisplayInfo::JsDisplayId>>> position;
202 SystemUpdateDataProperty<bool> visibility;
203 NoTabletSystemUpdateDataProperty<bool> backgroundTransparent;
204 SystemUpdateDataProperty<QCursor> cursor;
205 NoTabletSystemUpdateDataProperty<bool> focusable;
206 SystemUpdateDataProperty<QColor> backgroundColor;
207 SystemUpdateDataProperty<int> brightness;
208 SystemUpdateDataProperty<int> contrast;
209 SystemUpdateDataProperty<int> saturation;
210 SystemUpdateDataProperty<bool> windowTransparentForInput;
211 WindowModeOnlySystemUpdateDataProperty<Qt::WindowModality> modality;
212 WindowModeOnlySystemUpdateDataProperty<QString> title;
213 WindowModeOnlySystemUpdateDataProperty<WindowMinMaxCloseButtonsState> windowMinMaxCloseButtonsState;
214 WindowModeOnlySystemUpdateDataProperty<bool> windowStaysOnTop;
215 WindowModeOnlySystemUpdateDataProperty<bool> frameless;
216 };
217
218 static constexpr auto makeSystemUpdateDataPropertyUpdateFuncPairsTuple()
219 {
220 return std::make_tuple(
221 std::make_pair(&SystemUpdateData::sizeLimits, &QOhosView::updateWindowSizeLimits),
222 std::make_pair(&SystemUpdateData::size, &QOhosView::updateWindowSize),
223 std::make_pair(&SystemUpdateData::position, &QOhosView::updateWindowPosition),
224 std::make_pair(&SystemUpdateData::backgroundTransparent, &QOhosView::updateWindowBackgroundTransparency),
225 std::make_pair(&SystemUpdateData::cursor, &QOhosView::updateWindowCursor),
226 std::make_pair(&SystemUpdateData::focusable, &QOhosView::updateWindowFocusable),
227 std::make_pair(&SystemUpdateData::backgroundColor, &QOhosView::updateWindowBackgroundColor),
228 std::make_pair(&SystemUpdateData::brightness, &QOhosView::updateWindowBrightness),
229 std::make_pair(&SystemUpdateData::contrast, &QOhosView::updateWindowContrast),
230 std::make_pair(&SystemUpdateData::saturation, &QOhosView::updateWindowSaturation),
231 std::make_pair(&SystemUpdateData::windowTransparentForInput, &QOhosView::updateWindowTransparentForInput),
232 std::make_pair(&SystemUpdateData::modality, &QOhosView::updateWindowModality),
233 std::make_pair(&SystemUpdateData::title, &QOhosView::updateWindowTitle),
234 std::make_pair(&SystemUpdateData::windowMinMaxCloseButtonsState, &QOhosView::updateWindowMinMaxCloseButtonsState),
235 std::make_pair(&SystemUpdateData::windowStaysOnTop, &QOhosView::updateWindowStaysOnTop),
236 std::make_pair(&SystemUpdateData::frameless, &QOhosView::updateWindowFrameless));
237 };
238
239 template <typename T, QOhosRuntimeDeviceTypeAndMode SupportedModes>
240 void setSystemUpdateProperty(SystemUpdateDataProperty<T, SupportedModes> SystemUpdateData::*property, const T &value);
241
242 void scheduleSystemUpdateIfNeeded();
243 void updateWindowSize(const QSize &size);
244 void updateWindowSizeLimits(const std::pair<QSize, QSize> &sizeLimits);
245 void updateWindowPosition(const std::pair<QPoint, std::optional<QOhosDisplayInfo::JsDisplayId>> &position);
246 void updateWindowBackgroundTransparency(bool transparent);
247 void updateWindowCursor(const QCursor &cursor);
248 void updateWindowFocusable(bool focusable);
249 void updateWindowBackgroundColor(const QColor &color);
250 void updateWindowBrightness(int brightness);
251 void updateWindowContrast(int contast);
252 void updateWindowSaturation(int saturation);
253 void updateWindowTransparentForInput(bool transparentForInput);
254 void updateWindowModality(Qt::WindowModality modality);
255 void updateWindowTitle(const QString &title);
256 void updateWindowMinMaxCloseButtonsState(const WindowMinMaxCloseButtonsState &state);
257 void updateWindowStaysOnTop(bool staysOnTop);
258 void updateWindowFrameless(bool frameless);
259 void syncWindowStateImmediate(WindowStateSyncReason reason = WindowStateSyncReason::Normal);
260 void flushSystemPropertyUpdatesImmediate();
261 QOhosWindowProxy *flushedWindowProxyOrNull();
262 void setOrResetWindowProxy(std::shared_ptr<QOhosWindowProxy> windowProxy, QWindow *optLogicalParent);
263 const QOhosView *ancestorViewWithWindowOrNull() const;
264 void hideMainWindow();
265 void setWindowCornerRadius(double radius);
266 void setPrivacyMode(bool privacyModeEnabled);
267 void setBackgroundColor(const QColor &color);
268 void setBrightness(int brightness);
269 void setContrast(int contrast);
270 void setSaturation(int saturation);
271 void setWindowKeepScreenOn(bool keepScreenOn);
272 void setFixedSizeStateEnabled(bool fixedSizeStateEnabled);
273 void setWindowDragResizable(bool dragResizable);
274 void showWindow();
275 void sendAsyncSyntheticWindowActiveEvent();
276
277 std::shared_ptr<QOhosWindowProxy> tryCreateWindowProxyIfNeeded(ViewType viewType, QWindow *optLogicalParent);
278
279 bool isWindowTransparencyRequested() const;
280
281 QOhosPropertiesProvider m_windowPropertiesProvider;
282 QPointer<QWindow> m_ownerWindow;
283 std::shared_ptr<QOhosWindowProxy> m_ohosWindowProxy;
284 QSharedPointer<QNativeNode> m_nativeNode;
285 SystemUpdateData m_updateData;
286 bool m_updatePending;
287 std::function<QOhosWindowProxy::AvoidArea(QOhosWindowProxy::AvoidAreaType)> m_avoidAreasProvider;
288 bool m_requireHandheldDeviceSupport;
289 QtOhos::InternalWindowId m_ownerWindowId;
290 bool m_windowDestroyed = false;
291 std::optional<ViewType> m_viewType;
292 QPointer<QWindow> m_optLogicalParent;
293 std::optional<WindowHideMethod> m_lastMainWindowHideMethod;
294 ViewGeometryPersistencePolicy m_geometryPersistencePolicy = ViewGeometryPersistencePolicy::Ignore;
295 std::shared_ptr<void> m_windowPropertiesProviderCallbacksHandle;
296 std::function<void()> m_optPostSurfaceDrawTask;
297 int m_pendingSelfMinimizeEchoes = 0;
298};
299
300template <typename T, QOhosRuntimeDeviceTypeAndMode SupportedModes>
301void QOhosView::setSystemUpdateProperty(SystemUpdateDataProperty<T, SupportedModes> SystemUpdateData::*propertyMemberPtr, const T &value)
302{
303 QFlags<QOhosRuntimeDeviceTypeAndMode> supportedModes(SupportedModes);
304
305 if (m_requireHandheldDeviceSupport
306 && !supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::HandheldDeviceWindowPcMode)
307 && !supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::HandheldDeviceFullScreen)) {
308 return;
309 }
310
311 bool windowModeOnly =
312 !supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::HandheldDeviceFullScreen)
313 && (supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::_2in1)
314 || supportedModes.testFlag(QOhosRuntimeDeviceTypeAndMode::HandheldDeviceWindowPcMode));
315
316 if (windowModeOnly && !QOhosSettings::instance().isWindowPcModeEnabled()
317 && viewType() == ViewType::MainWindow) {
318 return;
319 }
320
321 auto &property = m_updateData.*propertyMemberPtr;
322 if (property.optPendingUpdateRequest != value) {
323 property.optPendingUpdateRequest = value;
324 scheduleSystemUpdateIfNeeded();
325 }
326}
327
328QT_END_NAMESPACE
329
330#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:88
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()
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()
QtOhos::enums::ohos::window::WindowEventType WindowEventType
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:62
std::optional< QOhosDisplayInfo::JsDisplayId > displayId
Definition qohosview.h:73
bool operator==(const WindowMinMaxCloseButtonsState &other) const
bool operator!=(const WindowMinMaxCloseButtonsState &other) const