Obsolete Members for QKeyCombination
The following members of class QKeyCombination are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(deprecated in 6.0) | operator int() const |
Related Non-Members
(deprecated in 6.0) QKeyCombination | operator+(Qt::Key key, Qt::KeyboardModifier modifier) |
(deprecated in 6.0) QKeyCombination | operator+(Qt::Key key, Qt::KeyboardModifiers modifiers) |
(deprecated in 6.0) QKeyCombination | operator+(Qt::Key key, Qt::Modifier modifier) |
(deprecated in 6.0) QKeyCombination | operator+(Qt::Key key, Qt::Modifiers modifiers) |
(deprecated in 6.0) QKeyCombination | operator+(Qt::KeyboardModifier modifier, Qt::Key key) |
(deprecated in 6.0) QKeyCombination | operator+(Qt::KeyboardModifiers modifiers, Qt::Key key) |
(deprecated in 6.0) QKeyCombination | operator+(Qt::Modifier modifier, Qt::Key key) |
(deprecated in 6.0) QKeyCombination | operator+(Qt::Modifiers modifiers, Qt::Key key) |
Member Function Documentation
[constexpr noexcept, deprecated in 6.0] QKeyCombination::operator int() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
Use toCombined() instead.
Related Non-Members
[constexpr noexcept, deprecated in 6.0] QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifier modifier)
[constexpr noexcept, deprecated in 6.0] QKeyCombination operator+(Qt::Key key, Qt::Modifier modifier)
[constexpr noexcept, deprecated in 6.0] QKeyCombination operator+(Qt::KeyboardModifier modifier, Qt::Key key)
[constexpr noexcept, deprecated in 6.0] QKeyCombination operator+(Qt::Modifier modifier, Qt::Key key)
This function is deprecated since 6.0. 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 in 6.0] QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifiers modifiers)
[constexpr noexcept, deprecated in 6.0] QKeyCombination operator+(Qt::Key key, Qt::Modifiers modifiers)
[constexpr noexcept, deprecated in 6.0] QKeyCombination operator+(Qt::KeyboardModifiers modifiers, Qt::Key key)
[constexpr noexcept, deprecated in 6.0] QKeyCombination operator+(Qt::Modifiers modifiers, Qt::Key key)
This function is deprecated since 6.0. 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.