Qt for HarmonyOS/qtohosextras doc/Window Drag Resize Example
< Qt for HarmonyOS / qtohosextras doc
Window Drag Resize Example
Demonstrates enabling drag-resize on sub windows and floating windows.
The main window creates either a sub window or a floating window; the floating variant is marked with QtOhosExtras::setShowWindowAsFloatWindowHint() before being shown. Each created window contains a toggle button that calls QtOhosExtras::setWindowDragResizable() with the checked state, enabling or disabling resize by dragging.
Note: The functionality only applies to sub windows and floating windows; application main windows are not supported. The QWidget overload may be called before or after the window is shown.
Files: