API reference
WindowChromeCompat
Cross-platform adapter for window chrome behavior.
No matching API members.
compatibility::WindowChromeOptions
Declarative options for platform window-chrome integration.
Fields
QRect titleBarRectLocal title-bar area that can behave as a draggable caption.
QVector<QRect> dragExclusionRectsLocal child-control rectangles that must stay normal client areas.
int resizeBorderWidth = 8Resize hit-test border width in device-independent pixels.
bool useCustomWindowChrome = falseEnables Fluent-managed title-bar/non-client integration.
bool preferNativeMacControls = trueKeeps native macOS traffic-light buttons when available.
bool chromeInteractive = trueLocks chrome move/resize when false, for modal overlays.
compatibility::WindowChromeCompat
Constructors
Methods
void configure(const WindowChromeOptions& options)Replaces the current chrome options and synchronizes platform geometry.
void applyPlatformWindowFlags()Applies platform window flags required by the current chrome policy.
bool systemBackdropSupported() constWhether this platform supports a translucent system backdrop.
BackdropCapabilities backdropCapabilities() constReturns per-effect platform capabilities for the current session.
bool applySystemBackdrop(BackdropEffect effect, bool dark, bool forceRecomposite = false)Applies the requested system backdrop effect; returns success.
BackdropApplyResult applySystemBackdropDetailed(BackdropEffect effect, bool dark, bool forceRecomposite = false)Applies a backdrop and returns the structured actual result.
bool handleNativeEvent(const QByteArray& eventType, void* message, FluentNativeEventResult* result)Handles forwarded native events and returns true when consumed.
bool beginSystemMove(const QPoint& globalPos)Starts a platform system-move operation.
bool beginSystemResize(Qt::Edges edges, const QPoint& globalPos)Starts a platform system-resize operation for the given edges.
bool performTitleBarDoubleClick()Performs the platform title-bar double-click action.
bool requestForegroundActivation()Requests foreground activation through the platform window manager.
HitTest hitTestLocal(const QPoint& localPos) constClassifies a local point against configured title/resize regions.
Enumerations
enum class PlatformRuntime platform family used for chrome policy decisions.
WindowsMacOSLinuxOther
enum class HitTestLogical hit-test result before mapping to native platform codes.
ClientCaptionLeftRightTopBottomTopLeftTopRightBottomLeftBottomRight
compatibility
Types and aliases
using FluentNativeEventResult = qintptrNative-event result type used by QWidget::nativeEvent() across Qt versions.