Obsolete Members for Qt
The following members of class Qt are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Types
(deprecated in 6.12) enum | NavigationMode { NavigationModeNone, NavigationModeKeypadTabOrder, NavigationModeKeypadDirectional, NavigationModeCursorAuto, NavigationModeCursorForceVisible } |
Functions
(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) |
Type Documentation
[deprecated in 6.12] enum Qt::NavigationMode
This enum is deprecated since 6.12. We strongly advise against using it in new code.
This enum type describes the mode for moving focus.
| Constant | Value | Description |
|---|---|---|
Qt::NavigationModeNone | 0 | Only the touch screen is used. |
Qt::NavigationModeKeypadTabOrder | 1 | Qt::Key_Up and Qt::Key_Down are used to change focus. |
Qt::NavigationModeKeypadDirectional | 2 | Qt::Key_Up, Qt::Key_Down, Qt::Key_Left and Qt::Key_Right are used to change focus. |
Qt::NavigationModeCursorAuto | 3 | The mouse cursor is used to change focus, it is displayed only on non touchscreen devices. The keypad is used to implement a virtual cursor, unless the device has an analog mouse type of input device (e.g. touchpad). This is the recommended setting for an application such as a web browser that needs pointer control on both touch and non-touch devices. |
Qt::NavigationModeCursorForceVisible | 4 | The mouse cursor is used to change focus, it is displayed regardless of device type. The keypad is used to implement a virtual cursor, unless the device has an analog mouse type of input device (e.g. touchpad) Note: The Qt API that used this enum ( |
Function Documentation
[constexpr noexcept, since 6.7, deprecated in 6.8] template <typename LeftType, typename RightType> requires if_compatible_pointers<LeftType, RightType> Qt::strong_ordering compareThreeWay(const LeftType *lhs, const RightType *rhs)
This function is deprecated since 6.8. We strongly advise against using it in new code.
Wrap the pointers into Qt::totally_ordered_wrapper and use the respective Qt::compareThreeWay() overload instead.
Implements three-way comparison of pointers.
Returns an instance of Qt::strong_ordering that represents the relation between lhs and rhs.
Constraints
Participates in overload resolution only if LeftType and RightType are the same type, or base and derived types. It is also used to compare any pointer to std::nullptr_t.
This is an overloaded function.
This function was introduced in 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)
This function is deprecated. We strongly advise against using it in new code.
Use operator| instead.
Returns a QKeyCombination object that represents the combination of key with the modifier 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)
This function is deprecated. We strongly advise against using it in new code.
Use operator| instead.
Returns a QKeyCombination object that represents the combination of key with the modifiers 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.