IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QKeyCombination Class

The https:// class stores a combination of a key with optional modifiers.

This class was introduced in Qt 6.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QKeyCombination Class▲

  • Header: QKeyCombination

  • Since: Qt 6.0

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Core)

    target_link_libraries(mytarget PRIVATE Qt6::Core)

  • qmake: QT += core

Detailed Description▲

The https:// class can be used to represent a combination of a key with zero or more keyboard modifiers.

See Also▲

See also QKeySequence

Member Function Documentation▲

 

[constexpr] QKeyCombination::QKeyCombination(Qt::Key key = Qt::Key_unknown)▲

Constructs a https:// object that represents the key key and no modifiers.

See Also▲

See also https://()

[explicit constexpr] QKeyCombination::QKeyCombination(Qt::Modifiers modifiers, Qt::Key key = Qt::Key_unknown)▲

Constructs a https:// object that represents the combination of key with the modifiers modifiers.

See Also▲

See also https://(), https://()

[explicit constexpr] QKeyCombination::QKeyCombination(Qt::KeyboardModifiers modifiers, Qt::Key key = Qt::Key_unknown)▲

Constructs a https:// object that represents the combination of key with the modifiers modifiers.

See Also▲

See also https://(), https://()

[static constexpr] QKeyCombination QKeyCombination::fromCombined(int combined)▲

Constructs a https:// object by extracting the key and the modifiers out of combined, which must be the result of a bitwise OR between a value of type https:// and value of type https://. https://() can be used in order to produce valid values for combined.

See Also▲

See also https://()

[constexpr] Qt::Key QKeyCombination::key() const▲

Returns the key represented by this https:// object.

See Also▲

See also https://()

[constexpr] Qt::KeyboardModifiers QKeyCombination::keyboardModifiers() const▲

Returns the keyboard modifiers represented by this https:// object.

See Also▲

See also https://()

[constexpr] int QKeyCombination::toCombined() const▲

Returns an integer value obtained by applying a bitwise OR between the values of https://() and https://() represented by this object. A https:// object can be created from the returned integer value by using https://().

See Also▲

See also https://(), https://(), https://()

Related Non-Members▲

 

[constexpr] QKeyCombination operator|(Qt::Key key, Qt::KeyboardModifier modifier)▲

[constexpr] QKeyCombination operator|(Qt::Key key, Qt::Modifier modifier)

[constexpr] QKeyCombination operator|(Qt::KeyboardModifier modifier, Qt::Key key)

[constexpr] QKeyCombination operator|(Qt::Modifier modifier, Qt::Key key)

Returns a https:// object that represents the combination of key with the modifier modifier.

[constexpr] QKeyCombination operator|(Qt::Key key, Qt::KeyboardModifiers modifiers)▲

[constexpr] QKeyCombination operator|(Qt::Key key, Qt::Modifiers modifiers)

[constexpr] QKeyCombination operator|(Qt::KeyboardModifiers modifiers, Qt::Key key)

[constexpr] QKeyCombination operator|(Qt::Modifiers modifiers, Qt::Key key)

Returns a https:// object that represents the combination of key with the modifiers modifiers.

[constexpr] size_t qHash(QKeyCombination key, size_t seed = 0)▲

Returns the hash value for the key, using seed to seed the calculation.

[constexpr] bool operator!=(QKeyCombination lhs, QKeyCombination rhs)▲

Returns true if lhs and rhs have different combinations of key and modifiers, otherwise false.

QDebug operator<<(QDebug debug, QKeyCombination combination)▲

Writes the combination combination into the debug object debug for debugging purposes.

See Also▲

See also Debugging Techniques

QDataStream &operator<<(QDataStream &out, QKeyCombination combination)▲

Writes the combination combination into the stream out. Returns out.

See Also▲

See also https://

[constexpr] bool operator==(QKeyCombination lhs, QKeyCombination rhs)▲

Returns true if lhs and rhs have the same combination of key and modifiers, and false otherwise.

QDataStream &operator>>(QDataStream &in, QKeyCombination &combination)▲

Reads the combination combination from the stream in. Returns in.

See Also▲

See also https://

Obsolete Members for QKeyCombination▲

The following members of class https:// are deprecated. We strongly advise against using them in new code.

Obsolete Member Function Documentation▲

 
[constexpr] int QKeyCombination::operator int() const▲

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

Use https://() instead.

Obsolete Related Non-Members▲

 
[constexpr] QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifier modifier)▲

[constexpr] QKeyCombination operator+(Qt::Key key, Qt::Modifier modifier)

[constexpr] QKeyCombination operator+(Qt::KeyboardModifier modifier, Qt::Key key)

[constexpr] QKeyCombination operator+(Qt::Modifier modifier, Qt::Key key)

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

Use operator| instead.

Returns a https:// object that represents the combination of key with the modifier modifier.

[constexpr] QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifiers modifiers)▲

[constexpr] QKeyCombination operator+(Qt::Key key, Qt::Modifiers modifiers)

[constexpr] QKeyCombination operator+(Qt::KeyboardModifiers modifiers, Qt::Key key)

[constexpr] QKeyCombination operator+(Qt::Modifiers modifiers, Qt::Key key)

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

Use operator| instead.

Returns a https:// object that represents the combination of key with the modifiers modifiers.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+   

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.