aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheerendra Purohit <[email protected]>2025-03-26 12:10:04 +0530
committerDheerendra Purohit <[email protected]>2025-07-05 04:23:46 +0000
commitd4eef6e8da24aa860d4db0f66641adbb75cc1518 (patch)
tree18746b614d37b398f7d9d4e06b8aa0e8872e84cf
parentb20c40f24444ac3533b84f8971bee296017e2923 (diff)
Doc : .sci file usage in BorderImage documentationHEADdev
The BorderImage documentation was unclear about the .sci file reference. Fixes: QTBUG-127329 Change-Id: Ife1ff7343845aa515e967256a092e08fce8c008c Reviewed-by: Axel Spoerl <[email protected]>
-rw-r--r--src/quick/items/qquickborderimage.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/quick/items/qquickborderimage.cpp b/src/quick/items/qquickborderimage.cpp
index c910e2bc23..e1ff549ef2 100644
--- a/src/quick/items/qquickborderimage.cpp
+++ b/src/quick/items/qquickborderimage.cpp
@@ -212,9 +212,12 @@ QQuickBorderImage::~QQuickBorderImage()
BorderImage can handle any image format supported by Qt, loaded from any
URL scheme supported by Qt.
- This property can also be used to refer to .sci files, which are
- written in a QML-specific, text-based format that specifies the
- borders, the image file and the tile rules for a given border image.
+ This property can also refer to a \c .sci file — a QML-specific,
+ text-based format that embeds the border values, the source image,
+ and tile rules directly within the file. When using a \c .sci file,
+ the BorderImage reads the border information from the file itself,
+ so specifying border properties in QML is unnecessary.
+
The following .sci file sets the borders to 10 on each side for the
image \c picture.png: