Obsolete Members for QKeyCombination | Qt Core | Qt 6.11.2
Description: The QKeyCombination class stores a combination of a key with optional modifiers.

- Qt 6.11
- Qt Core
- C++ Classes
- QKeyCombination
- Qt 6.11.2 Reference Documentation

# 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)` | operator int() const

## Related Non-Members

`(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)

## Member Function Documentation

### `[constexpr noexcept, deprecated]` QKeyCombination::operator int() const

This function is deprecated. We strongly advise against using it in new code.

Use toCombined() instead.

## Related Non-Members

### `[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.