Obsolete Members for Qt
Los siguientes miembros de la clase Qt son obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Desaconsejamos su uso en código nuevo.
Funciones
(since 6.7, deprecated in 6.8) Qt::strong_ordering | compareThreeWay(const LeftType *lhs, const RightType *rhs) |
(deprecated) QKeyCombination | operator+(Qt::Key key, Qt::KeyboardModifier modifier) |
(deprecated) QKeyCombination | operator+(Qt::Key key, Qt::KeyboardModifiers modifiers) |
(deprecated) QKeyCombination | operator+(Qt::Key key, Qt::Modifier modifier) |
(deprecated) QKeyCombination | operator+(Qt::Key key, Qt::Modifiers modifiers) |
(deprecated) QKeyCombination | operator+(Qt::KeyboardModifier modifier, Qt::Key key) |
(deprecated) QKeyCombination | operator+(Qt::KeyboardModifiers modifiers, Qt::Key key) |
(deprecated) QKeyCombination | operator+(Qt::Modifier modifier, Qt::Key key) |
(deprecated) QKeyCombination | operator+(Qt::Modifiers modifiers, Qt::Key key) |
Documentación de funciones
[constexpr noexcept, since 6.7, deprecated in 6.8] template <
typename LeftType,
typename RightType,
Qt::if_compatible_pointers<LeftType, RightType> = true
>
Qt::strong_ordering compareThreeWay(const LeftType *lhs, const RightType *rhs)
Esta función está obsoleta desde la versión 6.8. Desaconsejamos su uso en código nuevo.
Envuelva los punteros en Qt::totally_ordered_wrapper y utilice en su lugar la sobrecarga correspondiente de Qt::compareThreeWay().
Implementa la comparación tripartita de punteros.
Devuelve una instancia de Qt::strong_ordering que representa la relación entre lhs y rhs.
Restricciones
Participa en la resolución de sobrecargas sólo si LeftType y RightType son del mismo tipo, o de tipos base y derivados. También se utiliza para comparar cualquier puntero a std::nullptr_t.
Se trata de una función sobrecargada.
Esta función se introdujo en Qt 6.7.
[constexpr noexcept, deprecated] QKeyCombination operator+(Qt::Modifier modifier, Qt::Key key)
[constexpr noexcept, deprecated] QKeyCombination operator+(Qt::KeyboardModifier modifier, Qt::Key key)
[constexpr noexcept, deprecated] QKeyCombination operator+(Qt::Key key, Qt::Modifier modifier)
[constexpr noexcept, deprecated] QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifier modifier)
Esta función está obsoleta. Desaconsejamos su uso en código nuevo.
Utilice operator| en su lugar.
Devuelve un objeto QKeyCombination que representa la combinación de key con el modificador modifier.
[constexpr noexcept, deprecated] QKeyCombination operator+(Qt::Modifiers modifiers, Qt::Key key)
[constexpr noexcept, deprecated] QKeyCombination operator+(Qt::KeyboardModifiers modifiers, Qt::Key key)
[constexpr noexcept, deprecated] QKeyCombination operator+(Qt::Key key, Qt::Modifiers modifiers)
[constexpr noexcept, deprecated] QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifiers modifiers)
Esta función está obsoleta. Desaconsejamos su uso en código nuevo.
Utilice operator| en su lugar.
Devuelve un objeto QKeyCombination que representa la combinación de key con los modificadores modifiers.
© 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.