Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
9Being able to respond to user-input is a fundamental part of user-interface
10design. Depending on the use-case that an application solves, and the
11form-factor of the device that the application runs on, the best way
12to receive user-input may be different.
13
14\section1 Input from Pointing Devices
15
16Allowing users to physically touch a screen to interact with an application is
17a popular user-interface paradigm on portable devices like smartphones and
18tablets. In desktop applications, detecting and reacting to clicks and presses
19according to the mouse cursor position is a fundamental concept in
20user-interface design.
21
22Touch-driven and mouse-driven user interfaces are supported by various
23\l{Qt Quick Input Handlers}{input handler} types, and visual object types
24such as \l{Flickable} and \l{MouseArea}.
25
26See 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
32Supporting input from a keyboard is a vital component of the user interface of
33many applications.
34
35Any visual item can receive keyboard input through the \l Keys attached type.
36Additionally, the issue of \e {keyboard focus} arises when multiple items
37are required to receive key events, as these events must be passed to the
38correct item. See the documentation about \l{Keyboard focus in Qt Quick} for more
39information on this topic.
40
41Qt Quick also provides visual text items which automatically receive keyboard
42events and key-presses, and displays the appropriate text. See the
43documentation about \l{qtquick-input-textinput.html}{text input} for
44in-depth information on the topic.
45
46\omit //! QtSensors
47\section1 Device Motion Gestures
48
49Detecting device gestures with an accelerometer, or through camera-based gesture
50recognition, can allow users to interact with an application without requiring
51their full and undevided attention. It can also provide a more interactive
52and engaging experience.
53
54Qt Quick itself does not offer first-class support for physical device motion gestures;
55however, the \l{Qt Sensors} module provides QML types with support for such gestures.
56See the \l{Qt Sensors} module documentation for more information on the topic.
57\endomit //! QtSensors
58
59*/
60