Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
topic.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qtquick-input-topic.html
6
\title Important Concepts In Qt Quick - User Input
7
\brief Overview of user input concepts
8
9
Being able to respond to user-input is a fundamental part of user-interface
10
design. Depending on the use-case that an application solves, and the
11
form-factor of the device that the application runs on, the best way
12
to receive user-input may be different.
13
14
\section1 Input from Pointing Devices
15
16
Allowing users to physically touch a screen to interact with an application is
17
a popular user-interface paradigm on portable devices like smartphones and
18
tablets. In desktop applications, detecting and reacting to clicks and presses
19
according to the mouse cursor position is a fundamental concept in
20
user-interface design.
21
22
Touch-driven and mouse-driven user interfaces are supported by various
23
\l{Qt Quick Input Handlers}{input handler} types, and visual object types
24
such as \l{Flickable} and \l{MouseArea}.
25
26
See also the documentation about
27
\l{qtquick-input-mouseevents.html} {mouse events in Qt Quick}.
28
29
30
\section1 Keyboard Input and Keyboard Focus
31
32
Supporting input from a keyboard is a vital component of the user interface of
33
many applications.
34
35
Any visual item can receive keyboard input through the \l Keys attached type.
36
Additionally, the issue of \e {keyboard focus} arises when multiple items
37
are required to receive key events, as these events must be passed to the
38
correct item. See the documentation about \l{Keyboard focus in Qt Quick} for more
39
information on this topic.
40
41
Qt Quick also provides visual text items which automatically receive keyboard
42
events and key-presses, and displays the appropriate text. See the
43
documentation about \l{qtquick-input-textinput.html}{text input} for
44
in-depth information on the topic.
45
46
\omit //! QtSensors
47
\section1 Device Motion Gestures
48
49
Detecting device gestures with an accelerometer, or through camera-based gesture
50
recognition, can allow users to interact with an application without requiring
51
their full and undevided attention. It can also provide a more interactive
52
and engaging experience.
53
54
Qt Quick itself does not offer first-class support for physical device motion gestures;
55
however, the \l{Qt Sensors} module provides QML types with support for such gestures.
56
See the \l{Qt Sensors} module documentation for more information on the topic.
57
\endomit //! QtSensors
58
59
*/
qtdeclarative
src
quick
doc
src
concepts
input
topic.qdoc
Generated on
for Qt by
1.14.0