aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheerendra Purohit <dheerendra@pthinks.com>2025-06-21 12:49:27 +0530
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2025-07-28 11:34:05 +0000
commitb0751c5aec4799874eb1342be0b483f07e852cdc (patch)
tree287be805502d857933b95d098b88a90917bd14f1
parent174d3d0268b2a7105b69be204d73a5d61fca3650 (diff)
Doc: Improve the documentation of effectiveScrollBarHeight/Width
Clarify the effectiveScrollBarHeight and effectiveScrollBarWidth refer to the actual height and width used by visible scrollbars. Fixes: QTBUG-120706 Change-Id: I1b9efd998922f4e6fa20564710266a012b9de600 Reviewed-by: Doris Verria <doris.verria@qt.io> (cherry picked from commit 5b3644cdd48095fe4d2db9fc0c6b973ad81918de) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 686a11dbc587d8f29606f58f2ad4e7f49d6a00ab)
-rw-r--r--src/quicktemplates/qquickscrollview.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/quicktemplates/qquickscrollview.cpp b/src/quicktemplates/qquickscrollview.cpp
index 773242c365..e46c7ea4b6 100644
--- a/src/quicktemplates/qquickscrollview.cpp
+++ b/src/quicktemplates/qquickscrollview.cpp
@@ -511,8 +511,9 @@ QQuickScrollView::~QQuickScrollView()
\since 6.6
This property holds the effective width of the vertical scrollbar.
- When the scrollbar policy is \c QQuickScrollBar::AlwaysOff or the scrollbar
- is not visible, this property is \c 0.
+ When the scrollbar is visible, this property is the current width of the
+ scrollbar. When the scroll bar is not visible or its policy is set to
+ \c QQuickScrollBar::AlwaysOff, this property is \c 0.
\sa {ScrollBar::policy}
*/
@@ -527,8 +528,9 @@ qreal QQuickScrollView::effectiveScrollBarWidth()
\since 6.6
This property holds the effective height of the horizontal scrollbar.
- When the scrollbar policy is \c QQuickScrollBar::AlwaysOff or the scrollbar
- is not visible, this property is \c 0.
+ When the scrollbar is visible, this property is the current height of
+ the scrollbar. When the scroll bar is not visible or its policy is set
+ to \c QQuickScrollBar::AlwaysOff, this property is \c 0.
\sa {ScrollBar::policy}
*/