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