Skip to content

EWatermark Watermark ​

import EUI 1.0

Examples ​

Watermark ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
colorcolor

Custom color; a transparent value usually selects theme or semantic colors.

DefaultDynamic binding
containerContentalias

Content slot; declare QML child objects directly inside the component.

DefaultAlias: containerHost.data
contentvar

Watermark text as a string or array of strings.

Text or an array of text

Defaultundefined
contentComponentComponent

Component slot for custom body content; null uses the default content. See this page’s examples for delegate context.

Defaultnull
enabledbool

Allow interaction; false disables the control.

Defaulttrue
fontfont

Font settings for the family, size and text style.

Common fields:
family, pixelSize, pointSize
bold, italic, weight
underline, strikeout
letterSpacing, wordSpacing

DefaultQt.font({ pixelSize: 16 })
fontGapreal

Gap between content, columns, rows or text in pixels.

Default0
gappoint

Horizontal and vertical spacing between watermarks.

Fields: x, y

DefaultQt.point(100, 100)
heightreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitHeight
imageurl

Resource URL for an empty-state illustration or watermark image.

Default""
offsetpoint

Horizontal and vertical offset of the watermark content.

Fields: x, y

DefaultQt.point(0, 0)
rotatereal

Watermark rotation angle in degrees.

Default-22
textAlignstring

Horizontal alignment of the watermark text.

"left" / "center"
"right" / "start"
"end"

Default"center"
textBaselinestring

Vertical baseline of the watermark text.

"top" / "hanging"
"middle" / "alphabetic"
"ideographic" / "bottom"

Default"middle"
tileHeightint

Watermark tile dimensions in pixels; 0 computes them automatically.

Default100
tileWidthint

Watermark tile dimensions in pixels; 0 computes them automatically.

Default180
visiblebool

Whether the component is visible.

Defaulttrue
widthreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitWidth
zIndexint

Overlay or watermark stacking order.

Default9
columnCountintRead only

Data row count or watermark column/row count, computed from model or layout.

DefaultComputed at runtime
effectiveGapXrealRead only

Actual horizontal or vertical watermark gap in pixels.

DefaultComputed at runtime
effectiveGapYrealRead only

Actual horizontal or vertical watermark gap in pixels.

DefaultComputed at runtime
effectiveTileHeightrealRead only

Actual watermark tile dimension derived from content or explicit configuration.

DefaultComputed at runtime
effectiveTileWidthrealRead only

Actual watermark tile dimension derived from content or explicit configuration.

DefaultComputed at runtime
hasContentboolRead only

Whether displayable custom content exists.

DefaultComputed at runtime
resolvedContentstringRead only

Resolved lines of watermark text.

DefaultComputed at runtime
rowCountintRead only

Data row count or watermark column/row count, computed from model or layout.

DefaultComputed at runtime
stepXrealRead only

Horizontal or vertical watermark tiling step.

DefaultComputed at runtime
stepYrealRead only

Horizontal or vertical watermark tiling step.

DefaultComputed at runtime

Released under the MIT License. Third-party assets retain their own licenses.