Obsolete Members for QShortcutEvent

Los siguientes miembros de la clase ` QShortcutEvent ` están obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.

Funciones públicas

(deprecated) QShortcutEvent(const QKeySequence &key, int id, bool ambiguous = false)
(deprecated) int shortcutId() const

Documentación de las funciones de miembro

[deprecated] QShortcutEvent::QShortcutEvent(const QKeySequence &key, int id, bool ambiguous = false)

Esta función está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.

Crea un evento de atajo para la pulsación especificada en key, asociado al ID de QShortcut id .

Utiliza el otro constructor.

ambiguous Especifica si hay más de un « QShortcut » para la misma secuencia de teclas.

[deprecated] int QShortcutEvent::shortcutId() const

Esta función está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.

Devuelve el ID del objeto ` QShortcut ` para el que se generó este evento.

Véase también QShortcut::id().

© 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.