diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2024-03-15 14:31:29 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-03-18 22:34:29 +0000 |
commit | 3b6c8d305a91609713278c694a5d2297a880956e (patch) | |
tree | 4c83d8dec55e5b46bc7b74cc719d5b7f35909c43 /src/quick | |
parent | 25099f84c544748437c3954d279856bb8c866886 (diff) |
Document Rectangle's border.pixelAligned property
For unknown reasons this property has been undocumented.
Task-number: QTBUG-123210
Task-number: QTBUG-108831
Pick-to: 6.7 6.5
Change-Id: I1eba7385ee13943f9c1c3435583b570a18dff71e
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick')
-rw-r--r-- | src/quick/items/qquickrectangle.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/items/qquickrectangle.cpp b/src/quick/items/qquickrectangle.cpp index 6e73f50ce1..403d0c1034 100644 --- a/src/quick/items/qquickrectangle.cpp +++ b/src/quick/items/qquickrectangle.cpp @@ -353,6 +353,7 @@ void QQuickRectangle::doUpdate() \qmlpropertygroup QtQuick::Rectangle::border \qmlproperty int QtQuick::Rectangle::border.width \qmlproperty color QtQuick::Rectangle::border.color + \qmlproperty bool QtQuick::Rectangle::border.pixelAligned The width and color used to draw the border of the rectangle. @@ -362,6 +363,10 @@ void QQuickRectangle::doUpdate() rectangle itself or its position relative to other items if anchors are used. The border is rendered within the rectangle's boundaries. + + If \c pixelAligned is \c true (the default), the rendered border width is rounded to a whole + number of pixels, after device pixel ratio scaling. Setting \c pixelAligned to \c false will + allow fractional border widths, which may be desirable when \c antialiasing is enabled. */ QQuickPen *QQuickRectangle::border() { |