Qt for HarmonyOS/qtohosextras doc/Window Corner Radius Example
< Qt for HarmonyOS / qtohosextras doc
Window Corner Radius Example
Demonstrates setting rounded corners on a Qt window.
The main window contains a spin box for the radius and a button that creates a new sub window. The radius is applied with QtOhosExtras::setWindowCornerRadius() immediately before the new window is shown.
Note: The radius has to be applied before the window is shown, and the target must be a sub or floating window (for example created with the Qt::Window flag or marked with QtOhosExtras::setShowWindowAsFloatWindowHint()). Negative values are rejected.
Files: