QPointingDeviceUniqueId Class
QPointingDeviceUniqueId identifica un objeto único, como un token etiquetado o un stylus, que se utiliza con un dispositivo señalador. Más...
| Cabecera: | #include <QPointingDeviceUniqueId> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
- Lista de todos los miembros, incluyendo los heredados
- QPointingDeviceUniqueId es parte de Clases de Eventos.
Propiedades
- numericId : const qint64
Funciones públicas
| QPointingDeviceUniqueId() | |
| bool | isValid() const |
| qint64 | numericId() const |
Miembros públicos estáticos
| QPointingDeviceUniqueId | fromNumericId(qint64 id) |
No miembros relacionados
| size_t | qHash(QPointingDeviceUniqueId key, size_t seed = 0) |
| bool | operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs) |
| bool | operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs) |
Descripción Detallada
QPointingDeviceUniqueIds puede ser comparado para igualdad, y puede ser usado como clave en QHash. Puedes acceder al ID numérico a través de numericId(), si el dispositivo soporta tales IDs. Para futuras extensiones, sin embargo, no deberías usar esa función, sino comparar objetos de este tipo usando el operador de igualdad.
Esta clase es una fina envoltura alrededor de un ID entero. Se pasa dentro y fuera de las funciones por valor.
Véase también QEventPoint.
Documentación de propiedades
[read-only] numericId : const qint64
Esta propiedad contiene el ID numérico único del token representado por un punto de contacto.
Si el dispositivo proporciona un ID numérico, isValid() devuelve true, y esta propiedad proporciona el ID numérico; en caso contrario es -1.
No debe utilizar el valor de esta propiedad en código portable, sino confiar en la igualdad para identificar los punteros.
Funciones de acceso:
| qint64 | numericId() const |
Véase también isValid().
Documentación de las funciones miembro
[constexpr noexcept] QPointingDeviceUniqueId::QPointingDeviceUniqueId()
Construye un identificador de puntero único no válido.
[static] QPointingDeviceUniqueId QPointingDeviceUniqueId::fromNumericId(qint64 id)
Construye un identificador de puntero único a partir del identificador numérico id.
[constexpr noexcept] bool QPointingDeviceUniqueId::isValid() const
Devuelve si este ID de puntero único es válido, es decir, si representa un puntero real.
No miembros relacionados
[noexcept] size_t qHash(QPointingDeviceUniqueId key, size_t seed = 0)
Devuelve el valor hash para key, utilizando seed para sembrar el cálculo.
[noexcept] bool operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
Devuelve si los dos identificadores de puntero únicos lhs y rhs identifican punteros diferentes (true) o no (false).
[noexcept] bool operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
Devuelve si los dos identificadores únicos de puntero lhs y rhs identifican al mismo puntero (true) o no (false).
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.