diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2023-05-10 11:04:45 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-09-06 07:43:50 +0000 |
commit | a00b41935e09631d66dddc186d00162e53a9319b (patch) | |
tree | dddcff65df151ac66efd0cad87781b51ae6489ad | |
parent | 58148ebccc8f0e0aa4ef06c2a469c992cb564aa9 (diff) |
Doc: improve event handling sections
- Mention wheel events.
- Add a couple of sentences in the detailed description of Pane to
supplement the existing link in the "See also" section, which is
easy to miss.
Task-number: QTBUG-113228
Change-Id: Iec29e8a13a6243a87b9ebe7d3456716387efbd08
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
(cherry picked from commit 2f5e24bdcb06db63ddab2f6cbdf3945af8fa3d3c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/quicktemplates/qquickcontrol.cpp | 2 | ||||
-rw-r--r-- | src/quicktemplates/qquickpane.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/quicktemplates/qquickcontrol.cpp b/src/quicktemplates/qquickcontrol.cpp index 7af4b29523..54ad336a02 100644 --- a/src/quicktemplates/qquickcontrol.cpp +++ b/src/quicktemplates/qquickcontrol.cpp @@ -107,6 +107,8 @@ Q_LOGGING_CATEGORY(lcItemManagement, "qt.quick.controls.control.itemmanagement") } \endcode + Wheel events are consumed by controls if \l wheelEnabled is \c true. + \sa ApplicationWindow, Container, {Using Qt Quick Controls types in property declarations} */ diff --git a/src/quicktemplates/qquickpane.cpp b/src/quicktemplates/qquickpane.cpp index 9f14843db4..e61967b9b1 100644 --- a/src/quicktemplates/qquickpane.cpp +++ b/src/quicktemplates/qquickpane.cpp @@ -30,6 +30,10 @@ Q_LOGGING_CATEGORY(lcPane, "qt.quick.controls.pane") Pane's \l[QtQuickControls2]{Control::}{contentItem}. Items created dynamically need to be explicitly parented to the \c contentItem. + As mentioned in \l {Event Handling}, Pane does not let click and touch + events through to items beneath it. If \l wheelEnabled is \c true, the + same applies to mouse wheel events. + \section1 Content Sizing If only a single item is used within a Pane, it will resize to fit the |