EWatermark Watermark
Examples
Watermark
Properties
colorcolorCustom color; a transparent value usually selects theme or semantic colors.
Dynamic bindingcontainerContentaliasContent slot; declare QML child objects directly inside the component.
Alias: containerHost.datacontentvarWatermark text as a string or array of strings.
Text or an array of text
undefinedcontentComponentComponentComponent slot for custom body content; null uses the default content. See this page’s examples for delegate context.
nullenabledboolAllow interaction; false disables the control.
truefontfontFont settings for the family, size and text style.
Common fields:
family, pixelSize, pointSize
bold, italic, weight
underline, strikeout
letterSpacing, wordSpacing
Qt.font({ pixelSize: 16 })fontGaprealGap between content, columns, rows or text in pixels.
0gappointHorizontal and vertical spacing between watermarks.
Fields: x, y
Qt.point(100, 100)heightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightimageurlResource URL for an empty-state illustration or watermark image.
""offsetpointHorizontal and vertical offset of the watermark content.
Fields: x, y
Qt.point(0, 0)rotaterealWatermark rotation angle in degrees.
-22textAlignstringHorizontal alignment of the watermark text.
"left" / "center""right" / "start""end"
"center"textBaselinestringVertical baseline of the watermark text.
"top" / "hanging""middle" / "alphabetic""ideographic" / "bottom"
"middle"tileHeightintWatermark tile dimensions in pixels; 0 computes them automatically.
100tileWidthintWatermark tile dimensions in pixels; 0 computes them automatically.
180visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthzIndexintOverlay or watermark stacking order.
9columnCountintRead onlyData row count or watermark column/row count, computed from model or layout.
Computed at runtimeeffectiveGapXrealRead onlyActual horizontal or vertical watermark gap in pixels.
Computed at runtimeeffectiveGapYrealRead onlyActual horizontal or vertical watermark gap in pixels.
Computed at runtimeeffectiveTileHeightrealRead onlyActual watermark tile dimension derived from content or explicit configuration.
Computed at runtimeeffectiveTileWidthrealRead onlyActual watermark tile dimension derived from content or explicit configuration.
Computed at runtimehasContentboolRead onlyWhether displayable custom content exists.
Computed at runtimeresolvedContentstringRead onlyResolved lines of watermark text.
Computed at runtimerowCountintRead onlyData row count or watermark column/row count, computed from model or layout.
Computed at runtimestepXrealRead onlyHorizontal or vertical watermark tiling step.
Computed at runtimestepYrealRead onlyHorizontal or vertical watermark tiling step.
Computed at runtime